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

Defining variable in a mixin fails and crashes #132

Open
gjhltn opened this issue Sep 26, 2022 · 0 comments
Open

Defining variable in a mixin fails and crashes #132

gjhltn opened this issue Sep 26, 2022 · 0 comments
Labels

Comments

@gjhltn
Copy link

gjhltn commented Sep 26, 2022

Defining a variable in a mixin crashes when forEach is called on an undefined variabale.

> Cannot read properties of undefined (reading 'forEach')

To reproduce: in the playground at https://madlittlemods.github.io/postcss-css-variables/playground/

@define-mixin foo {
	--line-height: 100px;
      line-height: var(--line-height);
}
@gjhltn gjhltn changed the title Variable in a calculation in a mixin fails and crashes Defining variable in a mixin fails and crashes Sep 26, 2022
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

2 participants