-
Notifications
You must be signed in to change notification settings - Fork 150
Change order of node-sass, sass import #163
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
Comments
Hey @dummdidumm 👋 Yeah, I'm interested in changing it. In fact, I tried in #151 but started to get some errors regarding |
@dummdidumm Just released |
When I switch from Already tried to debug it, but I've hit a wall. Maybe related to: sass/dart-sass#703. Edit: Yeah, I'm unable to reproduce the error outside of the testing environment 🤔 🤔 🤔 |
Now that the |
Will be changed in |
Is your feature request related to a problem? Please describe.
Over at the language-tools repository we sometimes get error reports about using SCSS gives errors in the IDE. Most of the time it's because the users have
node-sass
installed and that is very sensitive to node versions. So if the IDE runs on a different node version than the user, it will likely crash if he does not set some configs, and even then it does not seem to work always. One suggestion we give the users is to usesass
instead. Now the problem could be that users have installednode-sass
globally and installsass
locally just for that one project. This means, becausesvelte-preprocess
tries to findnode-sass
first, the node module resolution algorithm would still find the globalnode-sass
first and still throw the error about incompatible node versions.Describe the solution you'd like
If acceptably for you, I would like to change the order of lookups from
['node-sass', 'sass']
to['sass', 'node-sass']
.Describe alternatives you've considered
#149 seems to add an option to use a specific compiler, that could help, too.
How important is this feature to you?
Not super important because there are workarounds, but it would still help us.
The text was updated successfully, but these errors were encountered: