# 更新组件遇到问题，上传新版本时出现错误提示

**URL:** <https://meta.discourse.org/t/help-with-updating-component-getting-error-message-when-trying-to-upload-new-version/403447>\
**Category:** Support\
**Created:** [2026年五月20日 16:54 UTC](https://meta.discourse.org/t/help-with-updating-component-getting-error-message-when-trying-to-upload-new-version/403447 "2026-05-20T16:54:10Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![baseline-mobile](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@baseline-mobile](https://meta.discourse.org/u/baseline-mobile)\
**Post date:** [2026年五月20日 16:54 UTC](https://meta.discourse.org/t/help-with-updating-component-getting-error-message-when-trying-to-upload-new-version/403447/1 "2026-05-20T16:54:10Z")

</div>

我们托管了一个 Discourse 网站。

我正在尝试修复某个组件中的 JavaScript，因为有人告诉我们它“ **使用了不再与当前 Discourse 版本兼容的旧方法** ”。

建议是“ **创建一个新文件** ”，然后“ **进入管理后台 → 自定义 → 主题 → 你的主题 → 编辑文件，接着使用文件树在该路径下添加一个新文件** ”，但我们没有这个选项，所以我尝试创建并安装一个新的组件。

当我尝试安装新组件时，收到以下错误信息：“ **发生错误：导入错误：about.json 不存在或无效。您确定这是一个 Discourse 主题吗？** ”。错误信息中没有具体说明问题所在，我已尝试多种方法，但始终收到相同的错误。

能否请您从以下任一角度提供帮助：

1. 告诉我可以在哪里查看文件树以编辑文件？

2. 告诉我如何找出我上传的组件中的具体错误？

如果您觉得有帮助，这里是我想上传的组件的下载链接：[https://drive.google.com/file/d/1sg-F3E\_YB2BuExuTdcQ8sfbTqUInkgKl/view?usp=sharing](https://drive.google.com/file/d/1sg-F3E_YB2BuExuTdcQ8sfbTqUInkgKl/view?usp=sharing "https://drive.google.com/file/d/1sg-F3E\_YB2BuExuTdcQ8sfbTqUInkgKl/view?usp=sharing")

谢谢！

---

_[View the full topic](https://meta.discourse.org/t/help-with-updating-component-getting-error-message-when-trying-to-upload-new-version/403447)._
