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

Reaction not running on OS X with latest node (9.11.1). #569

Closed
nicroto opened this issue Apr 12, 2018 · 2 comments
Closed

Reaction not running on OS X with latest node (9.11.1). #569

nicroto opened this issue Apr 12, 2018 · 2 comments

Comments

@nicroto
Copy link

nicroto commented Apr 12, 2018

I followed the Installation guide for OS X, but I was unable to run Reaction.

The first issue I hit was related to meteor breaking due to running out of memory. I found this solution.

But then starting up reaction still wasn't working. This is the (summary of the) output on that run:

tsenkov$ TOOL_NODE_FLAGS="--max-old-space-size=2048" reaction
Setting up plugin imports...

Installing dependencies for connectors-shopify...

up to date in 0.083s
Setting up style imports...

Provisioning assets...

[[[[[ ~/build/reaction ]]]]]

=> Started proxy.

Unable to resolve some modules:

  "@babel/runtime/helpers/objectSpread" in /Users/tsenkov/build/reaction/imports/plugins/core/collections/lib/validation.js
(web.browser)

...

Unable to resolve some modules:

  "@babel/runtime/helpers/builtin/objectSpread" in
/Users/tsenkov/build/reaction/imports/plugins/core/collections/lib/validation.js (os.osx.x86_64)

If you notice problems related to these missing modules, consider running:

  meteor npm install --save @babel/runtime

/Users/tsenkov/build/reaction/.meteor/local/build/programs/server/boot.js:475
}).run();
   ^

Error: Cannot find module '@babel/runtime/helpers/builtin/objectSpread'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.resolve (internal/module.js:18:19)
    at Object.require (/Users/tsenkov/build/reaction/.meteor/local/build/programs/server/boot.js:288:32)
    at makeInstallerOptions.fallback (packages/modules-runtime.js:651:18)
    at require (packages/modules-runtime.js:244:16)
    at generator.js (/Users/tsenkov/build/reaction/.meteor/local/build/programs/server/packages/boilerplate-generator.js:26:45)
    at fileEvaluate (packages/modules-runtime.js:343:9)
    at require (packages/modules-runtime.js:238:16)
    at /Users/tsenkov/build/reaction/.meteor/local/build/programs/server/packages/boilerplate-generator.js:388:15
    at /Users/tsenkov/build/reaction/.meteor/local/build/programs/server/packages/boilerplate-generator.js:395:3
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.

I asked about this in the gitter room and after a couple of attempts at fixing it, it turned out the issue is related to me running latest version of node.

So trying to setup Reaction with the default instructions on OS X, doesn't work if you are running latest (9.11.1) node. The version that worked for me 8.9.4, was suggested in the gitter room.

I thought this should be logged as an issue in Reaction (even if it is Meteor or Node issue, someone needs to keep track of it in Reaction, so you know what to suggest users to do during setup), but I was told this would be a more suitable place for the issue to be logged at. So perhaps the docs should be updated with a notice about the problem?

And the first thing I've hit (the meteor/node memory issue) - I think this is also a good candidate for either automation within the reaction run cli command, or if not possible - again, a note in the docs.

In any case, thanks for working on this project - just made an extensive research and (as I am sure you already know) there is nothing quite like it in the node ecosystem. If I end up using Reaction I will do my best to help out and contribute back to the project as much as I can.

Cheers!

@nicroto
Copy link
Author

nicroto commented Apr 12, 2018

@machikoyasuda
Copy link
Contributor

Issue moved to reactioncommerce/reaction #4309 via ZenHub

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

2 participants