Thanks a lot to @dan-abramov as his comment is the answer! (Give him the vote up in case you come across this).
You can just put e.g. node --max_old_space_size=4096 node_modules/.bin/react-scripts start
in there instead of react-scripts start
More Related Contents:
- How to Protect website code PHP / JS? [closed]
- “SyntaxError: Unexpected token < in JSON at position 0"
- What is Node.js? [closed]
- Is it safe to store a JWT in localStorage with ReactJS?
- ReactJS – Lifting state up vs keeping a local state
- React – changing an uncontrolled input
- What does npm install –legacy-peer-deps do exactly? When is it recommended / What’s a potential use case?
- npm start error with create-react-app
- Why is bind slower than a closure?
- Development server of create-react-app does not auto refresh
- Why is let slower than var in a for loop in nodejs?
- How to run user-submitted scripts securely in a node.js sandbox?
- How to add custom html attributes in JSX
- In React and Next.js constructor, I am getting “Reference Error: localstorage is not defined”
- Node.js Sass version 7.0.0 is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0
- Are arrow functions faster (more performant, lighter) than ordinary standalone function declaration in v8?
- How to make Puppeteer work with a ReactJS application on the client-side
- ‘react-scripts’ is not recognized as an internal or external command
- body data not sent in axios request
- Fetch image from API
- XMLHttpRequest cannot load No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:3000’ Google maps
- React.js Serverside rendering and Event Handlers
- Accessing line number in V8 JavaScript (Chrome & Node.js)
- Webpack 5 – Uncaught ReferenceError: process is not defined
- Mock inner axios.create()
- Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module ‘babel-preset-react’
- Node JS / V8 destructuring bug?
- ReactJS server-side rendering vs client-side rendering
- How to deploy a React + NodeJS Express application to AWS?
- create-react-app is showing all my code in production, how to hide it?