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

compile error in Materia theme with vite #1298

Closed
mimmi20 opened this issue Mar 9, 2024 · 4 comments
Closed

compile error in Materia theme with vite #1298

mimmi20 opened this issue Mar 9, 2024 · 4 comments

Comments

@mimmi20
Copy link

mimmi20 commented Mar 9, 2024

When running postcss and autoprefixer on the Materia theme with vite I got htis error

[vite:css] [postcss] 1.5em and 0 are incompatible.
     ╷
2092 │   min-height: calc(1.5em + 0 + calc(0 * 2));
     │                    ^^^^^^^^^
     ╵
  node_modules\bootswatch\dist\materia\bootstrap.css#sass 2092:20  root stylesheet
file: .../node_modules/bootswatch/dist/materia/bootstrap.css:2092:19

The themes Morph and Quartz work fine. I did not test other themes.

@thomaspark
Copy link
Owner

Can you check if this fixes it for you?

@mimmi20
Copy link
Author

mimmi20 commented Mar 9, 2024

Now I get the error

[vite:css] [postcss] 3.5rem and 0 are incompatible.
     ╷
2443 │     height: calc(3.5rem + calc(0 * 2));
     │                  ^^^^^^^^^^^^^^^^^^^^
     ╵
  node_modules\bootswatch\dist\materia\bootstrap.css#sass 2443:18  root stylesheet

I found this in the compiled css file

.form-floating > .form-select {
    height: calc(3.5rem + calc(0 * 2));
    min-height: calc(3.5rem + calc(0 * 2));
    line-height: 1.25;
}

@thomaspark
Copy link
Owner

OK, this should address that error.

@mimmi20
Copy link
Author

mimmi20 commented Mar 10, 2024

Now it works fine.

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

2 participants