I’m trying to fix the JavaScript in a component since we were told it “is using an older approach that is no longer compatible with the current version of Discourse”.
The recommendation is to “create a new file” and “go to Admin → Customize → Themes → your theme → Edit Files, then use the file tree to add a new file at that path”, but we don’t have that option, so I attempted to make a new component and install it.
When I go to install the new component, I get this message: "An error occurred: Import Error: about.json does not exist, or is invalid. Are you sure this is a Discourse Theme?". There is no specific data as to what the error is, and I have tried many things, but I continue to get this same error.
Can you help either way:
Show where I can go to see the file tree to edit files?
Let me know how I can find out the specific error in the component I’m uploading?
I am not sure that’s the real purpose of the component. Hiding the suspension reason is doable with the hide_suspension_reasons site setting, which also works in safe mode, so it hides the reason even better. So I would expect the component do do something slightly different.