react-in-vue-webpack icon indicating copy to clipboard operation
react-in-vue-webpack copied to clipboard

[Docs] Include setting `NODE_ENV` in `README`

Open Pk13055 opened this issue 2 years ago • 0 comments

While following these steps:

In root directory run following commands
1. run `npm i`
2. run `npm run init`
3. run `npm start`

Step 3. fails with a webpack error:

[webpack-cli] Failed to load 'react-in-vue-webpack/packages/react-app/config/webpack.conf.js' config
[webpack-cli] Failed to load 'react-in-vue-webpack/packages/vue-app/config/webpack.conf.js' config
[webpack-cli] Error: Cannot find module './webpack.undefined'

FIXED: Make sure you set NODE_ENV in the environment

export NODE_ENV=development  # OR `production`

Pk13055 avatar Feb 12 '24 23:02 Pk13055