I have a reactjs/typescript project, running on windows 10. Im trying to build by ts-scripts with
\"rimraf ../wwwroot/* && react-scripts-ts build
The solution which I used was to upgrade the node js version from v10 to v12.
The command export NODE_OPTIONS=--max_old_space_size=4096 works but has limitations, e.g. you should have ample memory on your machine to run the production build.
export NODE_OPTIONS=--max_old_space_size=4096