[somename].loader.js not loading correctly from a docker container #200
-
Hello! I have been fighting a strange issue for the past week and now I need some help. I recently upgraded to the latest version of this library. When I serve my application from inside a docker container I can not get it to load. I am confrontend by the imfamous "Uncaught SyntaxError: Unexpected token '<'" in what appears to be the [somename].loader.js file The strange thing is that the unity.loader.js files shows up as the react index.html in some strange fashion so I get why it says "unexpected" token. I have read tons of threads where people get similar errors because of compression settings, and I have tried all kinds of settings. Right now I am running uncompressed builds. And the strange thing is that when I run the application outside a container it works fine. I am using ASP NET 5 in the backend. Thankful for any help or ideas! br |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi! You're serving your files incorrectly. Duplicate of #57 |
Beta Was this translation helpful? Give feedback.
-
Recently, I was having the same issue with the app not working inside docker containers/ec2 servers. We need to be aware of the build file name changes when exported from unity and used in path for the react app. I've created a demo to dockerize a react-unity-webgl build here. |
Beta Was this translation helpful? Give feedback.
Hi! You're serving your files incorrectly. Duplicate of #57