Skip to content

Uncaught SyntaxError: Unexpected token '<' #348

Discussion options

You must be logged in to vote

I HAVE FOUND THE ISSUE
I am so sorry, I was looking for 2 days after a solution
And with writing that question that helped me defining the problem.
The url path was indeed the problem
if the path is root or /field, that works correctly
if the path is longer, like /user/account, you have to add ../
Like that
const unityContext = new UnityContext({
loaderUrl: "./../FallingGame/Build/FallingGame.loader.js",
frameworkUrl: "./../FallingGame/Build/FallingGame.framework.js",
dataUrl: "./../FallingGame/Build/FallingGame.data",
codeUrl: "./../FallingGame/Build/FallingGame.wasm",
});

I hope that can help you

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ZDev-9
Comment options

Answer selected by jeffreylanters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants