Meteor-Community-Packages / meteor-scss

Node-sass wrapped to work with meteor.
MIT License
311 stars 72 forks source link

Unable to resolve some modules: spawn-sync #231

Open RobinVanCauter opened 7 years ago

RobinVanCauter commented 7 years ago

I'm running Meteor 1.4.2.3 with fourseven:scss v3.10.1 and everytime my application runs I get the following error:

Unable to resolve some modules:

  "spawn-sync" in /home/robin/moonkin/bazaar/orbiter/node_modules/cross-spawn/index.js (web.browser)

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

  meteor npm install --save spawn-sync

Running the advised command doesn't change anything. As far as I know it's node-scss that depends on this package (or whatever the package fourseven:scss depends on is called exactly).

Any ideas on how I could fix this?

MeteorStartup commented 7 years ago

i got same issue, but I didn't follow up that advise cause it's not clear.

Any idea?

sebakerckhof commented 7 years ago

Can you retry with Meteor 1.4.2.7+ and latest fourseven:scss

s7dhansh commented 6 years ago

Still getting the same issue. Had ignored it for long, until today, and saw this issue open. Meteor 1.7, fourseven:scss updated.

Edit: In my case it was not caused by fourseven:scss. It was caused because of gm being imported on the client accidentally. After removing that, everything's perfect now. gm has a dependency on cross-spawn which in turn depend on spawn-sync, but probably that dependency is marked as serverOnly, causing this issue.