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

Package not working in project. #1

Closed
sammdec opened this issue May 24, 2013 · 32 comments
Closed

Package not working in project. #1

sammdec opened this issue May 24, 2013 · 32 comments

Comments

@sammdec
Copy link

sammdec commented May 24, 2013

I installed the package in a meteor project and for some reason whenever I try and boot the app it fails. Should it be in a certain folder or named a certain thing?

@fourseven
Copy link
Collaborator

Hey Sam, could you either include the error messages or link me to a gist is breaking please? It works for me but I'm happy to try and work out what's not working for you.

@sammdec
Copy link
Author

sammdec commented May 25, 2013

Hi there,
I start with a functioning app. Install the scss package by mrt add scss this installs fine and then i boot the app up by typing mrt everything works fine. If i then add a file called styles.scss within my css folder I get the following error code.

Exception while bundling application:
Error: Module version mismatch, refusing to load.
at Object.Module._extensions..node (module.js:485:11)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/Users/sam/.meteorite/packages/scss/fourseven/meteor-scss/d500ec82a77680be3c1e0640e48842d9e66c0102/.npm/node_modules/node-sass/sass.js:11:13)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.self.npmFacade.require (/Users/sam/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/tools/packages.js:131:16)
at scss_handler (/Users/sam/Sites/Git_Repos/gthr/.meteor/meteorite/packages/scss/package.js:12:18)
at _.extend.add_file (/Users/sam/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/tools/bundler.js:213:7)
at self.api.add_files (/Users/sam/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/tools/bundler.js:126:16)
at Array.forEach (native)
at Function._.each._.forEach (/Users/sam/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
at self.api.add_files (/Users/sam/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/tools/bundler.js:125:11)
at Array.forEach (native)
at Function._.each._.forEach (/Users/sam/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
at Object.self.api.add_files (/Users/sam/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/tools/bundler.js:124:9)
at _.extend.init_from_app_dir [as on_use_handler] (/Users/sam/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/tools/packages.js:246:11)
at _.extend.use (/Users/sam/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/tools/bundler.js:464:11)
at Object.exports.bundle (/Users/sam/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/tools/bundler.js:873:12)
at /Users/sam/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/tools/run.js:694:26
at exports.inFiber (/Users/sam/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/tools/fiber-helpers.js:24:12)

@fourseven
Copy link
Collaborator

Which version of node are you running?

@sammdec
Copy link
Author

sammdec commented May 26, 2013

Im running version v.0.10.7

@fourseven
Copy link
Collaborator

Is this the first meteor project that you've used this scss package in? I'm still trying to reproduce it, judging from your file paths it's running on Mac OS? Which version? I'll try and update the package to the new node-sass release which may help, but there's no guarantee.

@sammdec
Copy link
Author

sammdec commented May 26, 2013

yeah this is the first project using the scss package. Yeah running Mountain Lion. Could it be something to do with folder structure of the app or does that have no relevance?

@fourseven
Copy link
Collaborator

The app structure should not be a factor - this package associates .scss files to node-sass (anywhere in the file structure) and hands off to that to do the compilation.

There have been a few issues raised in the node-sass project about the Module version mismatch error, which is associated with modules and node versions not matching (0.8.x vs 0.10.x) - however I don't see why the Mac OS one is broken, it should be compiled for 0.10.x and is functioning for me.

Do you have node-sass installed globally?

@sammdec
Copy link
Author

sammdec commented May 27, 2013

Ah maybe it's because I don't have node-sass installed. I thought the meteor scss package installed it as a dependency. What's the best way of installing it?

@fourseven
Copy link
Collaborator

It should, so the fact that it is installed is a good thing. node-sass should be hidden away in: $PROJECT_FOLDER/.meteor/meteorite/packages/scss/.npm/node_modules if meteor is doing it's thing correctly. The package.json file in that (node-sass sub-)folder should also list it's version, which, with luck should be 0.4.4. Can you confirm this for me please?

@sammdec
Copy link
Author

sammdec commented May 29, 2013

Apologies for the delay in getting back I can confirm that the package.json reads version 0.4.4

@fourseven
Copy link
Collaborator

I've just had @bowmande update the versions to the latest node-sass, does that help? (scss package latest is 0.5.1.1)

@sammdec
Copy link
Author

sammdec commented Jun 6, 2013

How would I go a out updating the package? Everytime I run mrt update it
seems to fail at a fibres update.

On Thursday, June 6, 2013, Mathew Hartley wrote:

I've just had @bowmande https://github.com/bowmande update the versions
to the latest node-sass, does that help? (scss package latest is 0.5.1.1)


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-19077415
.

@fourseven
Copy link
Collaborator

The less drastic way is

mrt update scss

or remove and re-add the package.

@fourseven
Copy link
Collaborator

I just added travis configuration, and that's failing with the same problem as you're experiencing. Which is good, but I'm still perplexed - https://travis-ci.org/fourseven/meteor-scss/builds/7858318

@sammdec
Copy link
Author

sammdec commented Jun 7, 2013

It looks like its passing now on Travis.

@sammdec
Copy link
Author

sammdec commented Jun 7, 2013

Just reinstalled the package though and its still crashing as soon as I create and scss file

@bowmande
Copy link
Collaborator

bowmande commented Jun 7, 2013

I'll investigate to why it is working for me.

Sent from my iPhone

On Jun 7, 2013, at 3:52 AM, Sam Mason notifications@github.com wrote:

Just reinstalled the package though and its still crashing as soon as I create and scss file


Reply to this email directly or view it on GitHub.

@fourseven
Copy link
Collaborator

It's passing, but it shouldn't be, the log is showing the same error as you've referenced above.

@fourseven
Copy link
Collaborator

I'm still looking into this, node modules are cryptic when they're not obscured by meteor...

@pho3nixf1re
Copy link

This seems to be a problem with node-sass directly. They suspect a node version issue. sass/node-sass#102

@sammdec
Copy link
Author

sammdec commented Jun 25, 2013

Strange though as it looks like the issue is on older versions of node. I'm
running the latest using homebrew on osx.

On Tuesday, June 25, 2013, Matthew Turney wrote:

This seems to be a problem with node-sass directly. They suspect a node
version issue. sass/node-sass#102sass/node-sass#102


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-19994151
.

@pho3nixf1re
Copy link

We actually got this working after just bouncing the VM. Not sure how that could have affected anything, but it happened.

@sammdec
Copy link
Author

sammdec commented Jun 25, 2013

Ah I see, I have just checked again and it it still throwing the same error
as before.

On Tuesday, June 25, 2013, Matthew Turney wrote:

We actually got this working after just bouncing the VM. Not sure how that
could have affected anything, but it happened.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-20008819
.

@ghost
Copy link

ghost commented Aug 6, 2013

i'm having the same issue, is there any workaround or fix?

Exception while bundling application:
Error: Module version mismatch, refusing to load.
    at Object.Module._extensions..node (module.js:485:11)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/Users/m17/.meteorite/packages/scss/fourseven/meteor-scss/d3438b652f90ff2b418ac143fc3a746be2772e4b/.npm/node_modules/node-sass/sass.js:11:13)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.self.npmFacade.require (/Users/m17/.meteor/tools/d699ad29da/tools/packages.js:131:16)
    at scss_handler (/Users/m17/Sites/Meteor/pauta_jp/packages/scss/package.js:11:18)
    at _.extend.add_file (/Users/m17/.meteor/tools/d699ad29da/tools/bundler.js:213:7)
    at self.api.add_files (/Users/m17/.meteor/tools/d699ad29da/tools/bundler.js:126:16)
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/m17/.meteor/tools/d699ad29da/lib/node_modules/underscore/underscore.js:78:11)
    at self.api.add_files (/Users/m17/.meteor/tools/d699ad29da/tools/bundler.js:125:11)
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/m17/.meteor/tools/d699ad29da/lib/node_modules/underscore/underscore.js:78:11)
    at Object.self.api.add_files (/Users/m17/.meteor/tools/d699ad29da/tools/bundler.js:124:9)
    at _.extend.init_from_app_dir [as on_use_handler] (/Users/m17/.meteor/tools/d699ad29da/tools/packages.js:246:11)
    at _.extend.use (/Users/m17/.meteor/tools/d699ad29da/tools/bundler.js:464:11)
    at Object.exports.bundle (/Users/m17/.meteor/tools/d699ad29da/tools/bundler.js:873:12)
    at /Users/m17/.meteor/tools/d699ad29da/tools/run.js:697:26
    at exports.inFiber (/Users/m17/.meteor/tools/d699ad29da/tools/fiber-helpers.js:24:12)

versions:
macOSX 10.8.4
node 0.10.15
node-sass 0.6.3

@fourseven
Copy link
Collaborator

Hey all, I'm still struggling to find the cause for this - it works fine in isolation, but in some configurations it's doing what you see above. I'm still working on it, though any help appreciated.

@dburles
Copy link

dburles commented Aug 7, 2013

Hey I had the same issue on two different machines (both osx)

@ghost
Copy link

ghost commented Aug 10, 2013

after i formatted my HD and reinstalled all aplications, sass does not give me this error anymore and it is fully working.

@fourseven
Copy link
Collaborator

I've released a new version (0.6.4.1) to match the Meteor 0.6.5 packages API, please let me know if that helps.

@lpaul7
Copy link

lpaul7 commented Aug 24, 2013

Having this issue. Tell me if any information would help.

@7onathan
Copy link

Hi guys, having this issue on Ubuntu 13.04. Any info?

@kylesuss
Copy link

I was having similar issues.

To resolve, I updated my node version via NPM:

Guide

From there, I removed node-sass and then reinstalled using:

npm install node-sass -g

Using mrt, I added the meteor-scss packaged back to my project:

mrt add scss

All is well now.

Cheers.

@fourseven
Copy link
Collaborator

This has been properly resolved with #7

sebakerckhof pushed a commit that referenced this issue Aug 11, 2016
updated readme to include Compatibility matrix for Meteor version 1.4
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

8 participants