Reputation: 1298
I have a project which works with custom-react-scripts and I faced with memory leaks during development. The application is developed using React, Mobx, Mobx-State-Tree and uses decorators with babel.
When i start development server with command react-scripts start
2-3 node.js instances are started:
And when i'm changing some code in the project custom-react-scripts rebuilds project and more node.js instances appears:
Few moments after that all memory are allocated with node.js instances and my laptop starts freezing.
Does anyone know how to prevent custom-react-scripts to start new nodejs instances and solve this memory leak issue ?
Upvotes: 0
Views: 682
Reputation: 46
I guess the problem is hiding in your .env configuration file. I was facing this issue too earlier and these steps helped me:
Look at this screenshot (correct .env config). Hope it will help.
Upvotes: 3