If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.
### Can you reproduce the problem with latest npm?
Yes.
Can you still reproduce it?
Yes.
### Description
What are you reporting?
I am trying to render a create-react-app build folder using express. If I run it via localhost, it works fine, no problem. However, when I try to render it via my web server (Windows Server 2008, IIS, with iisNode), I get an error saying "Uncaught SyntaxError: Unexpected token <". This comes from the main.8b788f8.js file within the build/static/js folder.
Expected behavior
Tell us what you think should happen.
The express script should render the index.html page from the build folder with no issues.
Actual behavior
Tell us what actually happens.
Nothing is displayed at the web URL. There is one error within the console, stating the following:
main.8b78c8f8.js:1 Uncaught SyntaxError: Unexpected token <
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts (if you haven’t ejected): react-scripts @0.9.3
node -v: v6.9.5
npm -v: 3.10.10
Then, specify:
- Operating system: Windows Server 2008
- Browser and version: Google Chrome, Version 57.0.2987.98 (64-bit)
Reproducible Demo
Please take the time to create a new app that reproduces the issue.
Alternatively, you could copy your app that experiences the problem and start removing things until you’re left with the minimal reproducible demo.
(Accidentally, you might get to the root of your problem during that process.)
https://github.com/andehwong/counselling
By doing this, you're helping the Create React App contributors a big time!
Demonstrable issues gets fixed faster.
If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.
### Can you reproduce the problem with latest npm?
Yes.
Can you still reproduce it?
Yes.
### Description
What are you reporting?
I am trying to render a create-react-app build folder using express. If I run it via localhost, it works fine, no problem. However, when I try to render it via my web server (Windows Server 2008, IIS, with iisNode), I get an error saying "Uncaught SyntaxError: Unexpected token <". This comes from the main.8b788f8.js file within the build/static/js folder.
Expected behavior
Tell us what you think should happen.
The express script should render the index.html page from the build folder with no issues.
Actual behavior
Tell us what actually happens.
Nothing is displayed at the web URL. There is one error within the console, stating the following:
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts(if you haven’t ejected): react-scripts @0.9.3node -v: v6.9.5npm -v: 3.10.10Then, specify:
Reproducible Demo
Please take the time to create a new app that reproduces the issue.
Alternatively, you could copy your app that experiences the problem and start removing things until you’re left with the minimal reproducible demo.
(Accidentally, you might get to the root of your problem during that process.)
https://github.com/andehwong/counselling
By doing this, you're helping the Create React App contributors a big time!
Demonstrable issues gets fixed faster.