-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
parcel serve
hangs when importing multiple sass files
#1836
Comments
This is a known bug, my current best advice is don't use sass (or try figure out why this happens and report to node-sass) It has to do with the sass-node runtime not being able to handle multiple async concurrent calls. Probably an issue in their C code, although I might be wrong, haven't debugged it at all, just narrowed a very similar bug down to not getting a response from sass transpile. Sidenote: This issue is probably a duplicate of another issue. |
I have the same issue in my setup. Just tried the minimal testcase above with a quick vue/webpack setup: https://github.com/pille72/webpack_vue_scss_import_issue. Looks like that importing sass files is not a problem there, it also uses Don't know what the internal differences are, but I think it's a common use case to use scoped styles in vue components in sass and import some globals / vars. Maybe anyone has some ideas where to look at? |
parcel serve
hangs if multiple .vue components import the same .scss fileparcel serve
hangs when using multiple sass files
parcel serve
hangs when using multiple sass filesparcel serve
hangs when importing multiple sass files
Currently working on making parcel default to dart-sass, but still support node-sass. (See #1509) Will update with a PR shortly. Dart-sass appears to be way stricter and throws all kinds of errors (which is a good thing). And it will probably prevent the freezing as it uses js (or at least is compiled to js) |
I think I'm having a similar problem, but without the Vue part. My build freezes when I try to bundle only html+sass, and it runs fine if I comment out some common sass imports. I discovered that there's an option called |
With #1847 and my linked case above I now get a new error:
|
Came here via #1583. I tried your branch Error: expected "{".
@import "../../some-file.scss"; I fix that then I get more errors. Was previously using |
@BBlackwo Yeah dart-sass is way stricter on sass syntax, not much I can do about it, unless there is an option to disable it. At least it shows things like codeFrames and decent errors, which node-sass did not |
The documentation (https://parceljs.org/scss.html) still refers to this as an open issue. Is that still needed? |
🐛 bug report
I'm having issues with importing the same
.scss
file in multiple vue components. This works in up to three components.🎛 Configuration (.babelrc, package.json, cli command)
See https://github.com/zimmer7/parcel_vue_scss_import_issue for a minimal testcase –
npm run works
serves,npm run broken
breaks parcel.🤔 Expected Behavior
I should be able to use the same e.g.
_variables.scss
file in all of my components.😯 Current Behavior
parcel serve
hangs.💁 Possible Solution
No clue :-(
🔦 Context
💻 Code Sample
https://github.com/zimmer7/parcel_vue_scss_import_issue
🌍 Your Environment
1.9.7
10.7
6.1.0
The text was updated successfully, but these errors were encountered: