A have create-react-app application. I want to run production version on my local machine. I have made 'npm run build' and than 'npx webpack' (for addition info i use react-app-rewired in that poject to config proxy for devserver) and have next mistake:
ERROR in ./src/index.js 13:2
Module parse failed: Unexpected token (13:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| ReactDOM.render(
> <Provider store={store}>
| <App />
| </Provider>,
'serve -s build' do not work in my case:
zsh: command not found: serve
What should i do to run production build on my local? Thanks for help!