Code Monkey home page Code Monkey logo

Comments (32)

fourseven avatar fourseven commented on May 18, 2024

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.

from meteor-scss.

sammdec avatar sammdec commented on May 18, 2024

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)

from meteor-scss.

fourseven avatar fourseven commented on May 18, 2024

Which version of node are you running?

from meteor-scss.

sammdec avatar sammdec commented on May 18, 2024

Im running version v.0.10.7

from meteor-scss.

fourseven avatar fourseven commented on May 18, 2024

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.

from meteor-scss.

sammdec avatar sammdec commented on May 18, 2024

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?

from meteor-scss.

fourseven avatar fourseven commented on May 18, 2024

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?

from meteor-scss.

sammdec avatar sammdec commented on May 18, 2024

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?

from meteor-scss.

fourseven avatar fourseven commented on May 18, 2024

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?

from meteor-scss.

sammdec avatar sammdec commented on May 18, 2024

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

from meteor-scss.

fourseven avatar fourseven commented on May 18, 2024

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

from meteor-scss.

sammdec avatar sammdec commented on May 18, 2024

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
.

from meteor-scss.

fourseven avatar fourseven commented on May 18, 2024

The less drastic way is

mrt update scss

or remove and re-add the package.

from meteor-scss.

fourseven avatar fourseven commented on May 18, 2024

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

from meteor-scss.

sammdec avatar sammdec commented on May 18, 2024

It looks like its passing now on Travis.

from meteor-scss.

sammdec avatar sammdec commented on May 18, 2024

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

from meteor-scss.

bowmande avatar bowmande commented on May 18, 2024

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

Sent from my iPhone

On Jun 7, 2013, at 3:52 AM, Sam Mason [email protected] 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.

from meteor-scss.

fourseven avatar fourseven commented on May 18, 2024

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

from meteor-scss.

fourseven avatar fourseven commented on May 18, 2024

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

from meteor-scss.

pho3nixf1re avatar pho3nixf1re commented on May 18, 2024

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

from meteor-scss.

sammdec avatar sammdec commented on May 18, 2024

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
.

from meteor-scss.

pho3nixf1re avatar pho3nixf1re commented on May 18, 2024

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

from meteor-scss.

sammdec avatar sammdec commented on May 18, 2024

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
.

from meteor-scss.

 avatar commented on May 18, 2024

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

from meteor-scss.

fourseven avatar fourseven commented on May 18, 2024

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.

from meteor-scss.

dburles avatar dburles commented on May 18, 2024

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

from meteor-scss.

 avatar commented on May 18, 2024

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

from meteor-scss.

fourseven avatar fourseven commented on May 18, 2024

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.

from meteor-scss.

lpaul7 avatar lpaul7 commented on May 18, 2024

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

from meteor-scss.

7onathan avatar 7onathan commented on May 18, 2024

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

from meteor-scss.

kylesuss avatar kylesuss commented on May 18, 2024

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.

from meteor-scss.

fourseven avatar fourseven commented on May 18, 2024

This has been properly resolved with #7

from meteor-scss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.