I have a working yarn react project on a local machine.
yarn start
Works, yields a website that renders on the local host.
I have a server that was running the same project. However, I stopped the running website, and restarted with the following commands:
yarn install
yarn run build
yarn run prod
And I get the following error when accessing the website through chrome (on the production server):
Ucaught SyntaxError: Unexpected token <
What I am trying to do is diagnose where the problems could be arising. To summarize:
1) the project runs on the local machine (mac osx) with
yarn start2) I place the project on the linux box, install, build and run and everything seems to be sending to chrome; however, chrome yields this error
I am not sure where the problem could be. Localizing it to a set of possible problems would, I think, make it easy to solve (or ask better questions).