We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
11
14.17.4
Chrome
Windows 10
dev
Nextjs doesn't support sass @extend properly in .module.scss files.
@extend
.module.scss
I should be able to use styles\globals.scss
styles\globals.scss
.centerTransform { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
class in pages\settings\some-module.scss via @extend
pages\settings\some-module.scss
.someClass { @extend .centerTransform; }
Check the ongoing discussion in this "closed" issue.
#10475
The text was updated successfully, but these errors were encountered:
You can achieve it by using import at the beginning of your .module.scss file
@import '../../styles/globals.scss'; .myClass { @extend .centerTransform; }
Sorry, something went wrong.
I'm using Next.js v12.3.1 and still unable to use @extend of Sass.
I still can't use the SCSS @extend with v13.4.19.
No branches or pull requests
What version of Next.js are you using?
11
What version of Node.js are you using?
14.17.4
What browser are you using?
Chrome
What operating system are you using?
Windows 10
How are you deploying your application?
dev
Describe the Bug
Nextjs doesn't support sass
@extend
properly in.module.scss
files.Expected Behavior
I should be able to use
styles\globals.scss
class in
pages\settings\some-module.scss
via@extend
To Reproduce
Check the ongoing discussion in this "closed" issue.
#10475
The text was updated successfully, but these errors were encountered: