I’ve been using the Developer Rig to test my extension locally, and all is well there. I’m building in production mode (webpack) and hosting my /dist folder from within the rig. I see the extension and config page load and work properly from within the rig.
Now my issue: when I zip up the contents of my build output folder (yes, my file structure starts in the root of the .zip) and upload it for hosted testing, I just get blank config page and empty video component. I see in the Chrome dev console that my extension is loading the component/config html file, which is in turn loading the extension js file and my app js file, but nothing is rendering. How would I go about debugging at this stage?
Thanks for replying! I’m using relative URLs. As mentioned above, when I try to load up the config or the overlay component, the network calls for my js files are definitely succeeding:
That suggests you have loaded twitch-ext.min.js from your extension and not from Twitch.
Extension Helper Library
An extension’s iframe must import the Extension Helper JavaScript file, created and hosted by Twitch. It provides methods for dealing with authentication, receiving notifications of stream properties, and listening to PubSub events. Each HTML defined in the Asset Hosting section of your extension (Viewer, Config, Live Config) must load the Extension Helper. To do so, include this line:
The network call for the extension .js originates from my extension .html as seen in screenshot, but it’s the full twitch url like you specified. I didn’t include the extension js in my assets zip.