Skip to content
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

Can't use it with @radix-ui/themes #102

Closed
nemanjam opened this issue Nov 20, 2023 · 1 comment
Closed

Can't use it with @radix-ui/themes #102

nemanjam opened this issue Nov 20, 2023 · 1 comment

Comments

@nemanjam
Copy link

nemanjam commented Nov 20, 2023

In Popup.tsx when I import this:

import '@radix-ui/themes/styles.css';

I get this postcss related error log:

[webpack-cli] JisonParserError: Parse error on line 1: 
...m-start)) - var(--line-height, calc(1em * var(--default-line-height))) / 2
------------------------------------------------------------------------^
Expecting end of input, "ADD", "SUB", "MUL", "DIV", got unexpected "RPAREN"
    at /home/username/Desktop/reddit-unread-comments/css/popup.css:15963:5
    at Parser.parseError (/home/username/Desktop/reddit-unread-comments/node_modules/postcss-calc/dist/parser.js:1200:15)
    at Parser.parse (/home/username/Desktop/reddit-unread-comments/node_modules/postcss-calc/dist/parser.js:1716:30)
    at /home/username/Desktop/reddit-unread-comments/node_modules/postcss-calc/dist/lib/transform.js:33:30
    at walk (/home/username/Desktop/reddit-unread-comments/node_modules/postcss-calc/node_modules/postcss-value-parser/lib/walk.js:7:16)
    at ValueParser.walk (/home/username/Desktop/reddit-unread-comments/node_modules/postcss-calc/node_modules/postcss-value-parser/lib/index.js:18:3)
    at transformValue (/home/username/Desktop/reddit-unread-comments/node_modules/postcss-calc/dist/lib/transform.js:24:50)
    at _default (/home/username/Desktop/reddit-unread-comments/node_modules/postcss-calc/dist/lib/transform.js:66:100)
    at callback (/home/username/Desktop/reddit-unread-comments/node_modules/postcss-calc/dist/index.js:27:32)
...

This doesn't fix it:

postcss/postcss-calc#77 (comment)

radix-ui/themes#104

@nemanjam
Copy link
Author

Updating this package fixes it:

"optimize-css-assets-webpack-plugin": "^6.0.1",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant