-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
SASS :export does not work with built-in SASS support throwing 'Selector ":export" is not pure' #11629
Comments
Any updates here? Known workaround? |
I also have a need for this as well as the ability to add includePaths. |
This comment has been minimized.
This comment has been minimized.
I'm reporting the same problem as zorzysty in Next.js 9.3.6, with Sass 1.23.7. Is anybody looking into this? |
The issue is that the built-in
I'm not entirely sure of all the implications that this change might have... |
I am also looking for this functionality which is not working in Next.js. Please fix it! |
Feel free to fix it @vavra7 |
Fixed in |
Hello @Timer I tried to use that feature (SCSS export) and I did not succeed Perhaps I'm wrong in the way I've done it ? Thanks for help |
@lipoolock I had to rename my |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
I use
:export
syntax to export variables from scss files and import them in JS. This worked great with next-sass, but does not even compile with the built-in SASS support.To Reproduce
in
Component.jsx
:component.module.scss
:Expected behavior
colors
inComponent.jsx
should be an object that looks something like this:Actual behavior
It does not compile the scss file and throws:
System information
Additional information
next.config.js
does not contain any code related to CSS or SASSThe text was updated successfully, but these errors were encountered: