I have a reactjs/typescript project, running on windows 10. Im trying to build by ts-scripts with
\"rimraf ../wwwroot/* && react-scripts-ts build
I got a fix after increasing the node max_old_space. Here is the fix.
Instead of running npm start or ng start. Run the below command
node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve
OR
You can add the command in package.json file as well
"start": "node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve"