Closed rahmatkruniawan closed 7 years ago
Interesting. Are you on macOS? What happens when you npm run package
?
@amilajack no, I'm on windows.
when I run yarn package
still got
[1] 90% recording 0ms recording [1] 91% additional asset processing [1] FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
Hmm that's interesting. What are your node and npm versions? Also how big is your build?
Also see this bug: https://github.com/chentsulin/electron-react-boilerplate/issues/1045
@amilajack my node version is 6.9.1 and I user yarn version 0.22.0. How big my project ? hmm I don't know to tell how big my project. Can you advise me how to measure my project?
Sure. If you running npm run build-renderer
and then npm run build-main
. Webpack should output build sizes immediately after the build finishes.
Here's an example of the main processes's build size
when I run npm run build-renderer
still got some error .
and command of npm run build-main
I think that's size not all of them, becacuse not correctly compiled
Did you see chentsulin/electron-react-boilerplate#1045?
@amilajack sry I forgot to save my edited file not big project, i think.
But did you try changing to devtool: 'eval'
? Please try that
@amilajack sry I forgot to save it. Working fine for now. Thanks for help
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
I have been change this in package json
But stil got that error