So I am new in this coding with React. I wanted to deploy my App to heroku but I am getting this error shown in the picture.
Asked
Active
Viewed 88 times
0

ChrisGPT was on strike
- 127,765
- 105
- 273
- 257

omero20
- 1
-
Welcome to Stack Overflow. [Please don't post screenshots of text](https://meta.stackoverflow.com/a/285557/354577). They can't be searched or copied and offer poor usability. Instead, paste the code as text directly into your question. If you select it and click the `{}` button or Ctrl+K the code block will be indented by four spaces, which will cause it to be rendered as code. – ChrisGPT was on strike Feb 23 '20 at 22:34
-
Also, there is probably more useful information about what you've shown us. When you [edit] your question to replace the image with text, please include the _full_ error message. – ChrisGPT was on strike Feb 23 '20 at 22:37
-
Thank you Chris I am new around here. When I tried to copy and paste the logs it looked very weird that is why I put screenshot of it. I found the fix to my problem and It works fine now. Adding these in package.json scripts fixed it. "start": "react-scripts --max_old_space_size=4096 start", "build": "react-scripts --max_old_space_size=4096 build", – omero20 Feb 26 '20 at 07:14
-
"When I tried to copy and paste the logs it looked very weird that is why I put screenshot of it"—you can paste them as code. Paste, then select and press Ctrl+K or click the `{}` button. "I found the fix to my problem and It works fine now"—great! Please consider [answering your own question](https://stackoverflow.com/help/self-answer) to help others with the same problem in the future. – ChrisGPT was on strike Feb 26 '20 at 15:07
1 Answers
0
"start": "react-scripts --max_old_space_size=4096 start", "build": "react-scripts --max_old_space_size=4096 Adding these two to the package json and including npm and node as engines fixes my problem.

omero20
- 1