-
Hello, everyone. I have a component library project that I want to upgrade to Svelte v5. I am getting the following error: So, in order to advance, I figured: "Maybe if I run the project uncompiled and browse to the different pages in the demo, the error will come up and I'll have an indication as to where the problem is". I was right on the money, and this is what shows up while hitting the culprit page: However, I don't understand. To me, this is perfectly good CSS. This is the complete style tag in that Svelte file: <style lang="scss">
div.cb-grid {
display: grid;
grid-template-columns: auto auto auto auto;
row-gap: 1em;
column-gap: 0;
:global(&) > :global(*) {
width: 100%;
}
}
div.layout-grid {
display: grid;
grid-template-columns: auto auto auto auto;
row-gap: 1em;
column-gap: 2em;
& > .full-row {
grid-column-start: 1;
grid-column-end: 5;
}
}
</style> Can anybody spot the problem? To me, this looks just fine and Svelte v4 agrees with me. What is it about this that Svelte v5 doesn't like? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Changing |
Beta Was this translation helpful? Give feedback.
Technically, it's closer to the selector combinators
(space),
>
,+
, and~
. It just compiles to that.Also, it would be weird to compile
to