-
-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
dart-sass fails on transitive module imports found in 3rd-party modules #872
Comments
There are two problems:
We can't solve it on our side, sorry, you can try |
Anyway if you need more information feel free to feedback |
Well, the first point I do understand and I could give it a shot (even though I'm vary of trying out this early something that is so central to the whole dev process & that could break many things). The second part is worrying however. I am aware of your ...let's say back'n'forth… with (dart-)sass leader about the lacking design of their custom importer API. Is that THE blocker, or how would you describe our prospects in that regard? I've put this whole migration on hold as there currently didn't seem to be a way out (and what you're saying doesn't improve my feelings about it). Currently I'm on node-sass with my custom importer (I've shared that one with you in some other issue) and that works… I would however like to ultimately refactor our code from As a sidenote, do you have any knowledge about some KB regarding webpack@5 compatibility with most-used plugins? |
Honestly, I don't know what to say, my attempts to change their design
Most of plugins have compatibility with webpack@5. Can you try to use it? Just ensure no problems with webpack@5. If problem(s) will still exists, can you create minimum reproducible test repo with versions of |
Well, you've tried your best…
Great, that's an encouriging information and I'll try it right now then! |
@kubijo Let's keep open for investigation |
So this is what I've got… Unknown CLI flags
Yarn 2 issuesPlugins issuesmini-css-extract-plugin@0.9.0
Massive & broken CLI output |
sooo ... it's 32MB of text which I'm not happy to filter / put out in the open ... but i can send it to you directly if you'll give me some address |
@kubijo output is fixed in the master, release will be soon (it is webpack-cli problem), deprecations already in WIP webpack-contrib/mini-css-extract-plugin#552. Just want ensure all works fine. |
Found a bug, same problem |
Plus here problems with PnP, unfortunately, only webpack@5 works with PnP |
Nice, but does that means that the problem is solved? |
Yes
Fixed for dart-sass/node-sass, but my recommendation is migrate on sass (dart-sass) PnP is not working on webpack@4, but you can try to use plugin for this https://github.com/arcanis/pnp-webpack-plugin, webpack@5 has PnP support out of box |
Great & thx for info! I am using webpack@4 with afformentioned plugin. |
Operating System:
Ubuntu 20.04
Node Version:
13.12.0
NPM Version:
yarn@2.0.0-rc.33.git.20200518.07a15e54
webpack Version:
4.44.0
sass-loader Version:
9.0.2
Expected Behavior
Not sure what would be the correct solution, but we need a way
to instruct webpack that sass modules imported from
node_modules
can import
node_modules
modules of their own as well.Actual Behavior
Either of those imports lead to correctly resolved file:
@import '~@carbon/type/scss/styles'
@import '@carbon/type/scss/_styles.scss'
however in both cases the compilation encounters first import
in that file (
@import '@carbon/layout/scss/breakpoint'
)and crashes with following attached errors.
Sidenote
I thought that since version 4 came out following import would work as well,
which would also mean that this error would not exist, but alas I had no luck…
Note that the real file, as the screenshot shows, is at:
Is my understanding correct and so is there an error / configuration I am missing?
Code
The text was updated successfully, but these errors were encountered: