Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GENERATE_SOURCEMAP=false Issue #6766

Open
najibullahjafari opened this issue Apr 20, 2024 · 1 comment
Open

GENERATE_SOURCEMAP=false Issue #6766

najibullahjafari opened this issue Apr 20, 2024 · 1 comment

Comments

@najibullahjafari
Copy link

najibullahjafari commented Apr 20, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant