Is it possible to create an extension for twitch without webpack?
I have created an entire webapp extension for twtich only to realize that it doesn’t work when i try to test it for hosting. I tried to remove the “/” after I run “npm run build” in the index.html that is bundled. All of them were non relative paths as I have read about from these forums. After getting rid of those slashes I no longer got the 404 not found errors, but found myself in an error that no else seems to have ever had. It was saying something about “nonce” not being correct and that its a security risk then it printed out three domains one I am assuming is the actual domain of the server that it is hosted one was twitchs domain and the other was google. It also said something about inline javascript being incorrect. I will get the actual error message after I post this.
any help or suggestions would be awesome I am not particularily married to just react but downloading the boiler plate from multiple sources has been a headache. I was running the most recent version of node js which doesn’t play nicely with npm installing web pack server and other features. It would always hang on three, or core-js, and sometimes react-spring. Once I downgradded node to 14 LTS it worked like a charm. Deleting npm config did not work for me. However after all of this and npm start finally runs it doesn’t actually display anything in the webpage. Just an error in the webpage and no errors in console. Maybe error handling is differen’t for webpack based apps? I tried different endpoints localhost:8080/video_overlay.html, and others, but nothing each time. I am fairly sure that it worked earlier today when I didn’t add in all of the other packages that I had used to create the extension.
Mainly I am wondering if there is a simple solution to my problem is there some way that npm run build can be ran to output the files to how twitch specifically wants them? no /'s on the source files?