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

[Bug]: Error parsing calc-size #226

Open
Antonio-Laguna opened this issue Nov 20, 2024 · 4 comments
Open

[Bug]: Error parsing calc-size #226

Antonio-Laguna opened this issue Nov 20, 2024 · 4 comments
Labels

Comments

@Antonio-Laguna
Copy link

Describe the bug

Using

block-size: calc-size(auto, size);

Creates this error

Import trace for requested module:
./components/raven/global/Footer/styles.module.css
./components/raven/global/Footer/index.tsx
./app/not-found.tsx

./components/raven/global/Footer/styles.module.css
Warning

(127:2) postcss-calc: Lexical error on line 1: Unrecognized text.

  Erroneous area:
1: auto, size
^..^

Import trace for requested module:
./components/raven/global/Footer/styles.module.css

Expected behaviour

Expected not to fail

Steps to reproduce

Try to parse any block with that line:

.foo {
  block-size: calc-size(auto, size);
}

Version

10.0.2

Environment

System:
    OS: macOS 15.1.1
    CPU: (12) arm64 Apple M2 Max
    Memory: 100.92 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh

Package details

├─┬ @10up/[email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ └── [email protected] deduped
│ └─┬ [email protected]
│   └── [email protected] deduped
├─┬ @csstools/[email protected]
│ └── [email protected] deduped
├─┬ @storybook/[email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├── [email protected] deduped
│ └─┬ [email protected]
│   └── [email protected] deduped
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ └─┬ [email protected]
│ │ │   └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ └── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ └── [email protected] deduped
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├── [email protected] deduped
│ └─┬ [email protected]
│   └── [email protected] deduped
├─┬ [email protected]
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ ├─┬ @csstools/[email protected]
│ │ │ └── [email protected] deduped
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @csstools/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
├── [email protected]
└─┬ [email protected]
  ├─┬ [email protected]
  │ └── [email protected] deduped
  └── [email protected] deduped

Additional context

No response

@Antonio-Laguna
Copy link
Author

Happy to open a PR to fix this

@ludofischer
Copy link
Collaborator

Happy to open a PR to fix this

I will merge it if you do, do you know what is causing the issue?

@Matherss
Copy link

same error with
block-size: calc-size(auto, size);

@Antonio-Laguna
Copy link
Author

@Matherss yes, it's just not handling this fine. I have this working locally but didn't have time to clean up, will try to submit a PR this week :)

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

No branches or pull requests

3 participants