-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
import prefer js
over css/sass/scss
#556
Comments
@larpo Confirm, wip |
/cc @jhnns looks like regression |
Yep, fix is one the way. Thanks for the test case 👍 |
@jhnns can you take care? |
- Fixes problem with foundation - Fixes #556
Good to know it is a regression and not the intended behaviour :) |
- Fixes problem with foundation - Fixes #556
Shipped as That's why reproducible test cases are so good 👍 |
@jhnns looks like we still have problem 😕 |
@jhnns found problem:
|
@jhnns looks like problem here https://github.com/webpack-contrib/sass-loader/blob/master/lib/loader.js#L61, if you have two file with difference extensions, resolve prefer |
Hello guys, |
Just confirming I'm seeing the same issue as @evilebottnawi |
@evilebottnawi Yes, the build passes with this branch. |
@evilebottnawi PR #558 fixes the issue for me as well. |
@larpo the loader works now for me too. I had errors with Use: Thank you for the PR @evilebottnawi! |
Please let us know when the PR is merged. |
What it's taking so long to be reviewed? The PR was open 10 day ago. 😢 |
This is also causing issues for me in facebook/create-react-app#3815 |
Sorry for the delayed response, I am going to test it and comment back. |
@evilebottnawi 's fix of adding: |
Not spamming ( or trying not to ). I get same error with this SCSS... @import "theme/variables"; $theme-default:-dark: darken($theme-default:, 5%) !default; - Error Here ( Invalid CSS after "...e-default:-dark": expected 1 selector or at-rule, was ": darken($theme-def") My Webpack webpackConfig.module.rules.push({ |
Also experiencing this webpack config here: https://gist.github.com/opr/adae0b0a062bfa2769be38e13ebeffd0 my files live in |
I was experiencing this exact error importing a .css file with sass-loader 7.1.0. This is obviously a hacky solution, but I changed the file extension to .scss and things started working again. |
@rj33 I've found adding another line to the resolve block solves the problem of it trying to import base/index.js:
|
Can be solved 👍 webpack/webpack#9422 |
Solved by:
|
So what's the actual configuration solution? |
It is already fixed |
Odd, I saw this very same issue today using 7.3.1 |
Latest version is |
Please create new issue with reproducible test repo |
@JimBobSquarePants did u also update your webpack to 4.36.0 or later and your node to 8.9 or later? |
@dogoku Yeah everything is up to date. |
I have the same issue on 7.3.1. Is version 7 no longer supported now 8 is out? Lots of projects still depend on 7 (e.g. Symfony Encore Webpack) |
same issue |
Issue was solved, please update your deps, if you still have problem please open issue with minimum reproducible test repo |
@evilebottnawi But only in v8 right? Like @sandermarechal pointed out, the new version of sass-loader is unfortunately not supported yet by many different projects like Symfony Encore Webpack. |
@derWebdesigner yes, only new version fix problem, i strongly recommend update |
@evilebottnawi Thank you for your feedback. I would love to update, but then it's not working anymore with Symfony Encore Webpack. I guess I have to open a ticket there that v8 should be supported as soon as it's possible for them. |
Storybook had issues loading include-media from node_modules. Fix was released on v8+. See webpack-contrib/sass-loader#556
Storybook had issues loading include-media from node_modules. Fix was released on v8+. See webpack-contrib/sass-loader#556
Storybook had issues loading include-media from node_modules. Fix was released on v8+. See webpack-contrib/sass-loader#556
Storybook had issues loading include-media from node_modules. Fix was released on v8+. See webpack-contrib/sass-loader#556
Is it possible to fix this for v7 as well as a minor release? As others mentioned there are many packages still depend on v7. |
It appears that 7.0 breaks sass modules we are using from npm. I guess it is related to #479
For example foundation-sites that we are using imports it's internal modules like this:
Now, unfortunately 'util/util' is a valid file inside node_modules (from 'node-util' pkg), and the build fails with errror like this:
repro repo: https://github.com/larpo/webpack-sass-broken-module-imports
Is there a way to revert to the old behaviour? I don't see any mentions on READMe about how to configure the aliasing behaviour.
The text was updated successfully, but these errors were encountered: