reactjs / reactjs/react.dev

GENERATE_SOURCEMAP=false Issue

Open
#6,766 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug: unconfirmed
Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the scripts in package.json and reproduce the reported error after npm install, especially for the environment where GENERATE_SOURCEMAP is not recognized. Determine the intended behavior for the start and build commands; the issue is done when those commands run without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.