Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Unknow word when using postcss mixin plugin with postcss-env-function #12

Closed
leozero opened this issue May 10, 2021 · 2 comments
Closed

Comments

@leozero
Copy link

leozero commented May 10, 2021

Hello,

I have an issue when I'm using postcss-env-function with postcss-mixin

In my postcss.config.js I have :
require('postcss-import'), require('tailwindcss'), require('autoprefixer'), require('postcss-mixins'), require('cssnano'), require('postcss-nested'), postcssEnvFunction({ importFrom: './css-env.js', }),

And I also have a mixin file with for example :
@define-mixin lines $lines { display: -webkit-box; -webkit-line-clamp: $lines; -webkit-box-orient: vertical; overflow: hidden; }

And when I run postcss I have this error :
`CssSyntaxError: postcss-env-fn: :1:7: Unknown word

1 | lines $lines
| ^
`

When I removed postcss-env-function I don't have this error.

Any idea how I can resolve this issue ?

Thanks !

@leozero leozero changed the title Unknow word with mixin Unknow word when using postcss mixin plugin with postcss-env-function May 10, 2021
@Antonio-Laguna
Copy link
Member

@leozero could you try this with latest versions?

@romainmenke
Copy link
Member

Hi @leozero we are archiving this repo as this plugin has moved to @csstools/postcss-plugins

We hope this issue has already be resolved in the latest patches.
If it's not, can you open a new issue here?

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

No branches or pull requests

3 participants