-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ParserError: Syntax Error" with negative multiplication and vars #142
Comments
It doesn't work on my side. Switching it to the beginning has not effect.
|
I found a temporary fix, I just assign the negative value to a new property and it works. /* This will throw an error */
property: calc(var(--some-value) * -1);
/* This will work */
--minus-one: var(-1);
property: calc(var(--some-value) * var(--minus-one)); |
Strangely I cannot reproduce this using only postcss-cli. |
I have resolve this with moving zero to the start I have got an build error in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I've been getting a parse syntax error while trying to make a production build of Vue Storefront 2 Magento theme project.
The error specifically occurs when trying to parse something like
calc(var(--my-var) * -1)
;e.g.
By just changing the order of the terms in the calc statement it works correctly;
e.g.
Environment
v11.6
v14.16.1
v6.14.12
v1.22.10
v1.0.0-rc.3
v7.0.32
Reproduction steps
$ npx @vue-storefront/cli init
Magento 2 (beta)
integration option.env.example
as.env
and update the Magento integration URLs (MAGENTO_GRAPHQL
,MAGENTO_EXTERNAL_CHECKOUT_URL
)$ yarn install
$ yarn dev
(everything works in dev mode)$ yarn build
(build fails with the postcss errors)The text was updated successfully, but these errors were encountered: