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

Incorrect version number from cli? #405

Open
ManzDev opened this issue Sep 30, 2021 · 4 comments · May be fixed by #406
Open

Incorrect version number from cli? #405

ManzDev opened this issue Sep 30, 2021 · 4 comments · May be fixed by #406

Comments

@ManzDev
Copy link

ManzDev commented Sep 30, 2021

With postcss-cli 8.3.1 works fine:

$ npm install -D postcss-cli@8.3.1
$ npx postcss --version
8.3.1

With postcss-cli 9.0.0+ don't works:

$ npm install -D postcss-cli@9.0.1
$ npx postcss --version
1.0.0
@RyanZim
Copy link
Collaborator

RyanZim commented Sep 30, 2021

Yep, seems to be a known bug with our argument parser in ESM modules: yargs/yargs#1934

RyanZim added a commit that referenced this issue Sep 30, 2021
@RyanZim RyanZim linked a pull request Sep 30, 2021 that will close this issue
@RyanZim
Copy link
Collaborator

RyanZim commented Sep 30, 2021

PR: #406

@lk77
Copy link

lk77 commented Aug 31, 2022

I have the same issue it shows 0.0.0 when it's 10.0.0

@RyanZim
Copy link
Collaborator

RyanZim commented Aug 31, 2022

Yes, this is a known bug with a dependency we use; if anyone can work on fixing yargs/yargs#1934, it would be appreciated.

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

Successfully merging a pull request may close this issue.

3 participants