Deploying to a subdirectory? Issue #363
Unanswered
ZDev-9
asked this question in
Help Wanted!
Replies: 1 comment
-
Ahh found the problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys been working on a project for a client. Basically the site is set up where he has a landing page and then the project I worked on is a React app set up n a members page. (coolwebsite.com/reactapp)
If I do make div with the Unity game inside of it I get an error in browser console of:
Uncaught SyntaxError: Unexpected token '<'
I basically rebuilt the entire site like 5 times now and found the issue to be in the package.json file. If I remove the ' "homepage": "https://coolwebsite.com/reactapp", the game will render just fine. However since it's being deployed to a subdomain I think I need this line of code in the package.json file. Any help?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions