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

Error when running "react-scripts start" #1005

Closed
jamessspanggg opened this issue Nov 23, 2020 · 1 comment
Closed

Error when running "react-scripts start" #1005

jamessspanggg opened this issue Nov 23, 2020 · 1 comment

Comments

@jamessspanggg
Copy link
Contributor

jamessspanggg commented Nov 23, 2020

Bug Description
When running npm run start, the following error occurs:

appTsConfig.compilerOptions[option] = value;
                                          ^

TypeError: Cannot assign to read only property 'jsx' of object '#<Object>'
    at verifyTypeScriptSetup (/Users/jamespang/Desktop/Projects/Website-1/node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239:43)
    at Object.<anonymous> (/Users/jamespang/Desktop/Projects/Website-1/node_modules/react-scripts/scripts/start.js:31:1)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
    at internal/main/run_main_module.js:18:47

Steps to Reproduce
Steps to reproduce the behavior:

  1. Run npm run start
  2. View the error

Expected behavior
No error and able to launch localhost.

Actual behavior
Error occurred

Screenshots/Recordings
Screen Shot 2020-11-23 at 6 54 11 PM

OS and Browser

  • OS: MacOS, Chrome

Additional context
Note that this will occur if new contributors clone our project and run npm install. Or existing contributors re-install npm packages
Seems like a recent issue with the recent create react app: facebook/create-react-app#10112
Workaround: facebook/create-react-app#9868 (comment)

Account Number
Acc No: c54c04774efaae20746fd3f29cdd619fea512e119bc1082b863572b2e8844104

@thesanjeevsharma
Copy link
Contributor

@jamessspanggg I am gonna close this. While reviewing a PR yesterday, I updated react-scripts to 4.0.1.

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

Successfully merging a pull request may close this issue.

2 participants