sass-brunch icon indicating copy to clipboard operation
sass-brunch copied to clipboard

Update node-sass

Open kazzkiq opened this issue 7 years ago • 11 comments

Recently I've tried to run brunch build --production on my Linux virtual machine and got this message:

warn: Loading of sass-brunch failed due to Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (51)

As the message says, it looks like Linux versions are supported only on newer versions of node-sass.

The current version of node-sass used in this project is v3.8.0 while their latest release is v4.5.0. Do you guys consider updating this project to newer versions anytime soon?

How can I work around this issue in the meanwhile so I can compile my brunch project directly from my production machine?

kazzkiq avatar Mar 02 '17 04:03 kazzkiq

see last commits — we've reverted the upgrade since it broke something.

paulmillr avatar Mar 06 '17 18:03 paulmillr

@kazzkiq hi! Here is the commit that reverts upgrade to new major version of node-sass: https://github.com/brunch/sass-brunch/commit/984c71ce95520ed0196ad1e453a39372b281a5de

Take a look at related issues: #141, #142

denysdovhan avatar Mar 06 '17 18:03 denysdovhan

Thanks, guys. Is this Brunch-related or a issue with node-sass/Bootstrap/Foundation code?

Meanwhile, if anyone is also facing this issue, a good workaround is running node-sass separately on your brunch project:

  1. Install node-sass globally on your server (npm install -g node-sass);
  2. Run brunch build as usual;
  3. Run node-sass on your main CSS file. e.g. node-sass /app/styles/main.scss /public/app.css.

kazzkiq avatar Mar 06 '17 20:03 kazzkiq

@kazzkiq I forked this repo and updated node-sass to v.4.5.3. I did not see any errors (although my test app is very simple). I am using Node 7.2.1. Can you see if it works for you?

npm install git+https://[email protected]/jukebox017/sass-brunch.git

jukebox017 avatar May 17 '17 04:05 jukebox017

Any news on this? Am having this same issue with an app on Heroku, have been advised to include node-sass as a dependency in my project and/or try compiling with node-sass directly...

harryfinn avatar Jul 04 '17 08:07 harryfinn

Any news? I was looking at using brunch for a new project but if I have to use postcss with brunch then I may as well just not.

mattly avatar Mar 31 '18 05:03 mattly

This is also breaking an existing project that I was using brunch with. I don't really want to have to manually run sass each time which kind of defeats the purpose of using brunch.

benlilley avatar Aug 30 '18 00:08 benlilley

Ran into this tonight as well

tielur avatar Aug 30 '18 07:08 tielur

still present :)

MeerKatDev avatar Apr 04 '20 08:04 MeerKatDev

with sass-brunch 3?

paulmillr avatar Apr 04 '20 10:04 paulmillr

I changed minor version several times, it didn't help. I had to downgrade to node 12.

MeerKatDev avatar May 06 '20 08:05 MeerKatDev