Closed hrath2015 closed 6 years ago
I saw this a few times (on macOS) as well while trying to use the bundle-visualizer and --production. I'm not sure this is Windows (or CLI) specific. I was not running the CLI, just meteor run
. Seems like it's been one of those ongoing Meteor issues, that is exacerbated in 1.5. Each time I got this, I killed all Meteor threads and reran successfully.
@jshimko reported this was resolved in https://github.com/reactioncommerce/reaction/issues/2177
The build args he mentions there are setting TOOL_NODE_FLAGS="--max-old-space-size=2048"
this is also a suggested fix from the various Meteor issues on this topic. You could try that (and maybe we should bake that in??)
Yep, try putting that before the reaction
command. You could even go a little higher if your machine has plenty available.
TOOL_NODE_FLAGS="--max-old-space-size=4096" reaction
Also, for a little more detail...
@hrath2015 is this still an issue for you after updating to Meteor 1.5.1?
Sorry for delayed response @jshimko
It is same. For all fresh install it happens(first time). I close command prompt, open a new one and
reaction run
to get going.
I'm getting the exact error when running reaction build myCustomImage
. Nothing I do can get the image to build... even when running the build on an ec2 box or using docker hub's automated build feature.
I also getting this error on my mac , I have tried solutions mention here , but no help.
@bkilrain @phenomenon01 Try doing your docker build with the TOOL_NODE_FLAGS
arg...
docker build --build-arg TOOL_NODE_FLAGS="--max-old-space-size=2048" -t myCustomImage .
This is resolved by the workaround of adding the TOOL_NODE_FLAGS args. Closing
Keep getting the error on
reaction
runTried 3-4 times since morning fails consistently.
At the same time
meteor run
works fine without any issue.