react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

GENERATE_SOURCEMAP=false Issue

Open najibullahjafari opened this issue 1 year ago • 1 comments
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" }

najibullahjafari avatar Apr 20 '24 17:04 najibullahjafari

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",

najibullahjafari avatar Apr 20 '24 17:04 najibullahjafari