You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 2 imports that I use in multiple scss files that look like the following:
@import 'variables';
@import 'functions';
Everything works fine until I hit one file that has the exact same imports. Then, I see webpack build stall and it shows no errors. If I remove the import for this file, everything works, if I add it, it stalls. I don't understand why its happening because it's using the exact same imports. Problem still occurs if I remove everything in that file except for the imports. Problem does not occur if I remove the imports as well.
the module-specific styles will be require’d in the controller.
all module-specific styles has @import syntax to _settings.scss file.
the main.scss is the ‘global’ stylesheet which require’d in the app.js file, and has @import syntax to _settings.scss file.
also I used foundation-apps library heavily, so main.scss file has @import to the foundation-apps/foundation, and the module-specific styles has @import to some foundation functions that I use for the module, such as foundation-apps/components/grid.
the build succeeds when I first remove the require on the controller, and add it again after the first build has succeed (I use webpack-dev-server with --hot).
3.1.1 also suffers from threading problem, so there must be some other, additional issue. @evandegr can you post somewhere a minimal but complete example to reproduce this issue?
I had this same issue. It happens when I import a utility .scss file (it has mixins) into 2 or more other scss files. If I just import it into 1 scss file, webpack builds correctly.
However, I have no problem with config .scss files that only define variables. I can include those into as many .scss files with no build problem.
We experienced this issue as well - multiple imports over different files of a global (@import '~boilerplate';) mixin/variable file completely stalled webpack.
@haustraliaer nice! :) i was going going to do it this weekend but ran out of time. Would really love to get this resolved so we can stop adding 30 sass include paths into our build. Let me know if you need any help!
From what i can gather, it's really a cyclical import issue. I don't think there's anything to do for sass-loader other than to detect/report the problem for the user to fix.
Activity
[-]Silently fails/stalls with no error[/-][+]Silently fails/stalls webpack with no error[/+]maman commentedon May 19, 2015
got this issue too.
the directory structure is something like this.
require’d in thecontroller.@importsyntax to_settings.scssfile.require’d in theapp.jsfile, and has@importsyntax to_settings.scssfile.also I used
foundation-appslibrary heavily, somain.scssfile has@importto thefoundation-apps/foundation, and the module-specific styles has@importto some foundation functions that I use for the module, such asfoundation-apps/components/grid.the build succeeds when I first remove the
requireon thecontroller, and add it again after the first build has succeed (I use webpack-dev-server with --hot).jhnns commentedon May 20, 2015
That's strange, thx for reporting this. Could you set up a small gist that reproduces the error?
saper commentedon May 20, 2015
Does putting
env UV_THREADPOOL_SIZE=100beforenodeinvocation help? If yes, then this is sass/node-sass#857Antontelesh commentedon May 20, 2015
I'm reporting the same issue.
Putting
env UV_THREADPOOL_SIZE=100beforewebpackinvocation does not help.Antontelesh commentedon May 20, 2015
Sorry, it helps but builds very slowly. I've been waiting for a couple of minutes and it have compiled after all :)
maman commentedon May 20, 2015
@jhnns sorry I can't, still in the middle of a project 😣
currently I'm using the
env UX_THREADPOOL_SIZE=100, and it definitely helps. thanks @saper !evandegr commentedon May 20, 2015
Also downgrading to 0.5.0 and using node-sass 3.1.1 fixed this for me.
saper commentedon May 20, 2015
3.1.1 also suffers from threading problem, so there must be some other, additional issue. @evandegr can you post somewhere a minimal but complete example to reproduce this issue?
ftorre104 commentedon May 21, 2015
I had this same issue. It happens when I import a utility .scss file (it has mixins) into 2 or more other scss files. If I just import it into 1 scss file, webpack builds correctly.
However, I have no problem with config .scss files that only define variables. I can include those into as many .scss files with no build problem.
env UV_THREADPOOL_SIZE=100worked for me too.jeffling commentedon May 21, 2015
Weird, I have the same problem and fixed it by downgrading to 0.5.0. Tried 0.6.0 and it didn't work.
haustraliaer commentedon May 26, 2015
We experienced this issue as well - multiple imports over different files of a global (
@import '~boilerplate';) mixin/variable file completely stalled webpack.saper commentedon May 26, 2015
I would really love if webpack community could produce a simple, self-contained setup to reproduce the issue.
haustraliaer commentedon May 26, 2015
@saper I'm literally doing that right now ;)
jeffling commentedon May 26, 2015
@haustraliaer nice! :) i was going going to do it this weekend but ran out of time. Would really love to get this resolved so we can stop adding 30 sass include paths into our build. Let me know if you need any help!
50 remaining items
jsg2021 commentedon Mar 25, 2017
From what i can gather, it's really a cyclical import issue. I don't think there's anything to do for sass-loader other than to detect/report the problem for the user to fix.
mechanicious commentedon Jul 27, 2017
Webpack stalled at compiling Javascript files through babel.
Adding the options below to
webpack.config.jssolved the issue for me. These options are described in docs.So my Webpack config file looks now like this
Implement queue for node-sass render
Prevent webpack from hanging during staging
Prevent webpack from hanging during staging
Prevent webpack from hanging during staging
Prevent webpack from hanging during staging
Prevent webpack from hanging during staging
Prevent webpack from hanging during staging
Prevent webpack from hanging during staging
Prevent webpack from hanging during staging
Prevent webpack from hanging during staging
Prevent webpack from hanging during staging
Prevent webpack from hanging during staging
Prevent webpack from hanging during staging