Turbopack Error: The composes property cannot be used with a simple class selector
#85812
Replies: 2 comments
-
|
Good catch — that’s a Turbopack CSS Modules compatibility error. 🧩 The core issueThe error says: That means in your .myClass {
composes: anotherClass;
/* ... */
}or .myClass {
composes: .anotherClass;
}This syntax works under Webpack’s older CSS Modules handling, 💡 Why this happens
So: .title {
composes: heading;
}✅ Valid .title {
composes: heading from './typography.module.css';
}✅ How to fix itOption 1: Remove
|
Beta Was this translation helpful? Give feedback.
-
|
@Mr-Nilarnab thank you. I was actually using "composes" like so: without the One other issue I noted is that it doesnt like again, not sure about the spec for this.. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Turbopack version:
v16.0.1-canary.5-10-g406721415Next.js version:
16.0.1Error message:
Beta Was this translation helpful? Give feedback.
All reactions