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
CSS modules transpilation fails when @zeit/next-sass is activated #71
Comments
What happens if you btw, native Sass support will ship soon in Next.js ;) |
Just to understand your setup: you have Sass files in your Next.js app and you have |
Hey ! Your are right about our setup. It's a monorepo with :
Components in the libs are currently using styled-jsx and I want to move them to css modules to reduce bundles sizes. ...but the site has all its stylesheets written with scss. => That's why I'm doing these tests :) |
The problem comes most probably from the fact both plugins may be editing the same Webpack rules. I will try to analyze the current |
Merci Pierre ! {
experimental: { scss: true }
} I'll keep you posted |
awesome! |
Just did it in the repro repo : https://github.com/cedric-marcone/repro-tm-sass |
Can I close this then? :) edit: your company may not like to work on canary though |
I won't deploy anything relying on canary to production but, as we work on next gen e-commerce platform for ESF (écoles du ski français) , we won't need to until the end of the summer 😄so, it's pretty cool ! |
Cocorico! |
Are you trying to transpile a local package or an npm package?
I'm trying to transpile a local package
Describe the bug
Since v3 used with nextjs 9.2 we can transpile css modules and it works great !
But, just by adding
@zeit/next-sass
tonext-config.js
it breaks :To Reproduce
I made a mono-repo available to test the behavior :
=> It works
Then edit
next.config.js
:Replace
By
And rebuild :
=> It breaks
Note that is fails even there is no scss files, I just added the next-sass plugin
Expected behavior
It should transpile *.module.css even if the next-sass plugin is activated.
Setup
next-transpile-modules
version: 3.0.2yarn
version: 1.22.0The text was updated successfully, but these errors were encountered: