-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
styles is undefined in module.scss #1611
Comments
@Faraz1995 could you create a reproduction repository? Also, you need to format the code in the issue better for us to fix this |
i reformat the code, tnx for mention it, also i try to make a sandbox for it too |
@evenstensberg |
GitHub repo is better |
https://github.com/Faraz1995/css-loader-issue |
I also encountered the same problem,using 6.x is ok |
Please use |
@alexander-akait as you can see in my sandbox, by your way, styles were not applied |
@Faraz1995 Your sandbox works fine, all styles were applied, even more you don't have |
Bug report
Styles import from a module scss file is undefined
Actual Behavior
when i use a.module.scss and import it import styles from './a.module.scss'
styles is always undefined
Expected Behavior
in "css-loader": "^6.8.1", it works just fine but in lts version i mean "css-loader": "^7.1.2",my styles object are undefined
How Do We Reproduce?
here is my webpack config
and i am using css loader 7.1.2 , nextjs 14.2.5
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: