-
I have a basic React Rails app on which I just started integrating
|
Beta Was this translation helpful? Give feedback.
Answered by
ElMassimo
Jul 24, 2024
Replies: 1 comment 4 replies
-
Hi Mateo @devsheva Try disabling sourcemaps. If the build succeeds, then it's an indication that the server where you are precompiling assets doesn't have enough memory. If the problem persists, try asking in Vite Discussions, as folks there might be familiar with this kind of error. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's likely that your Mac is not configured to provide enough memory to Node JS processes by default.
See this answer, or this post related to Webpack, and consider setting
NODE_OPTIONS=--max_old_space_size=4096
in your terminal session by default. You may adjust the limit based on the app that you are attempting to build.