Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React widget fails due to "JavaScript heap out of memory" error #343

Open
sarah-thong opened this issue Oct 9, 2024 · 0 comments
Open

Comments

@sarah-thong
Copy link

sarah-thong commented Oct 9, 2024

Hi devs,

I am following the Getting Started guide to add the React widget to my frontend project. However, when I run yarn start to run a localhost server to view my changes, the compilation fails with the following error:

Screenshot 2024-10-09 104343

Dependencies Versions
@skip-go/widget: ^2.5.2
react: ^18.2.0
react-dom: ^18.2.0
styled-components: ^6.1.13

Just to be clear:

  • I added --max-old-space-size=8192 to the start command in package.json. I tried increasing the value to 16384 and 32384 when I received the error, but it did not help to resolve the issue.
    image

Please let me know if you need any more information to troubleshoot the issue. Thank you!

@sarah-thong sarah-thong changed the title React widget fails with React widget fails due to "JavaScript heap out of memory" error Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant