Repository navigation
Selector can't have a suffix. #17362
Replies: 2 comments
|
This looks like a Sass parent-selector suffix issue rather than a Vite configuration problem. The problem is likely caused by nesting In Sass, Instead, write the complete global selectors separately: :global(.ant-menu-item-group) {
// styles for the menu item group
}
:global(.ant-menu-item-group-title) {
// styles for the menu item group title
}This avoids asking Sass to append a suffix to You can still use normal nesting for descendant selectors, for example: :global(.ant-menu-item-group) {
.some-child {
// child styles
}
}You shouldn't need to change your Vite configuration just to fix this selector error. If this doesn't resolve it, sharing the complete SCSS block would help identify the exact selector causing the issue. |
|
I wouldn't try to bypass it. Sass is right here: Write the global class out instead: :global(.ant-menu-item-group) {
:global(.ant-menu-item-group-title) {
// styles
}
}If it's the same element rather than a child, skip the nesting and just use — |
Uh oh!
There was an error while loading. Please reload this page.
Hi, Is there a way to bypass the error message below? I have been looking for workarounds in forums but have been unable to find anything useful. Please help. Thank you.
All reactions