You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know, this is currently a limitation of Lightning CSS which is used in the background to parse and transform CSS. parcel-bundler/lightningcss#6
Judging by that issue I've linked, this isn't going to be updated and Lightning CSS won't support this :global {} type of selector where you can nest other selectors under it. Your best bet is to rewrite this CSS.
If for example you've used :global {} like this:
:global {
.icon {
...
}
.test {
...
}
}
You must rewrite it to use the function like syntax:
Link to the code that reproduces this issue
https://github.com/mblandr/turbopack
To Reproduce
start project without turbopack - css module works fine.
with turbopack on, you will get error:
Parsing css source code failed
Ambiguous CSS module class not supported at [project]/src/app/page.module.css:0:8
Current vs. Expected behavior
current - error parsing css module in turbopack mode
expected - parsing module correctly like without turbopack enabled
Provide environment information
Which area(s) are affected? (Select all that apply)
CSS
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: