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 don't think that the solution is to increase memory limit. This way the issue is always postponed.
I've encounter this issue 2 times. I've solved, for each time:
node (v12.11.1, react v16.13.1 and react-scripts v3.2.0);npm to yarn (node v12.11.1, react v16.13.1 and react-scripts v3.4.1).In addition, check your package.json, delete package-lock.json, remove node-modules folder and try to install your dependencies again.
Next try to build your project.