reactjs / react.dev

The React documentation website
https://react.dev/
Creative Commons Attribution 4.0 International
10.96k stars 7.47k forks source link

GENERATE_SOURCEMAP=false Issue #6766

Open najibullahjafari opened 4 months ago

najibullahjafari commented 4 months ago

Summary

When I run the project after npm install there was the bellow error: 'GENERATE_SOURCEMAP' is not recognized as an internal or external command,

Page

package.json

Details

I have these scripts in package.json "scripts": { "start": " GENERATE_SOURCEMAP=false react-scripts start", "build": "GENERATE_SOURCEMAP=false react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start" }

najibullahjafari commented 4 months ago

I found that the error can be fixed by changing this "start": " GENERATE_SOURCEMAP=false react-scripts start", to "start": "set GENERATE_SOURCEMAP=false && react-scripts start",