Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught SyntaxError: Unexpected token < #8398

Closed
mx2323 opened this issue Jan 30, 2020 · 0 comments
Closed

Uncaught SyntaxError: Unexpected token < #8398

mx2323 opened this issue Jan 30, 2020 · 0 comments

Comments

@mx2323
Copy link

mx2323 commented Jan 30, 2020

just leaving this for others that might be hitting this issue and frustrated.

i've been trying to get the npm run build production site to work in my ejected app, but was getting the

Uncaught SyntaxError: Unexpected token <

fixed it by changing this line in webpack.config.js

+  const publicPath = '/'//isEnvProduction

in webpack.config.js

closing, as a hint for anyone that can't get their production build to work.

@mx2323 mx2323 closed this as completed Jan 30, 2020
@lock lock bot locked and limited conversation to collaborators Feb 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant