react.dev
react.dev copied to clipboard
GENERATE_SOURCEMAP=false Issue
trafficstars
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" }
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",