I moved my extension to the Hosted stated and included all of the CSS and JS files in the uploaded assets. But when the extension loads on the live feed I get a 404 errors despite the files being in their respected folders. This is how it is listed in the viewer.html
We just have to build the project and add the files into a zip and upload it, right?
I did that but the extension HTML is not showing up, however when I host the same files on S3 and provide the public root URL, it works.
The build files are directly inside of the zip and not in another folder of the zip.
The structure is like this:
and remaining files in similar manner.
What error are you getting in the console? Is it the HTML 404’ing, or the .js?
Also, not directly related to your issue, but best practices would be to have a separate file for each view rather than shared html/js used by all views as otherwise you’re loading data for views that may not even need it.
It’s 404’ing because it’s trying to access a path called panel, when you want it to load index.html. In the Asset Hosting tab in your extension settings console, make sure you have each view pointing at index.html