Uncaught SyntaxError: Unexpected token <
Closed this issue · 0 comments
mx2323 commented
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.