I'm currently working on a project in node 18.7.0 that utilizes nuxt 2.15.8. Within my Vue component, I have the following SCSS code:
<style lang="scss">
.Accordion {
--Accordion__margin-top: 2.5rem;
&__items {
margin-top: calc(var(--Accordion__margin-top) * -1);
}
}
</style>
However, when I run a nuxt build, I encounter a postcss error with minimal information provided:
syntax error at line 1
Interestingly, if I make a simple change to the problematic line, such as this:
margin-top: var(--Accordion__margin-top);
The issue is resolved. Can you help me identify what might be causing this syntax problem?