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

yargs is throwing a ExperimentalWarning #1763

Closed
kmadsen opened this issue Sep 22, 2020 · 2 comments
Closed

yargs is throwing a ExperimentalWarning #1763

kmadsen opened this issue Sep 22, 2020 · 2 comments

Comments

@kmadsen
Copy link

kmadsen commented Sep 22, 2020

Cross posting this one https://stackoverflow.com/questions/63892611/yargs-is-throwing-a-experimentalwarning

How do you get rid of this experimental warning?

Here's a CLI to reproduce

yargs-test.zip

➜  cd yargs-test
➜  npm install
➜  node index.js testing
Verified test
(node:67006) ExperimentalWarning: Conditional exports is an experimental feature. This feature could change at any time

index.js example

const argv = require('yargs')
    .command('testing', 'Simple test', (argv) => {
        console.log("Verified test")
    })
    .help()
    .demandCommand(1)
    .parse()
@cyungmann
Copy link

cyungmann commented Sep 22, 2020

Looks to be caused by #1708. See also nodejs/node#31819. Looks like upgrading to a newer Node version would also resolve the issue (see nodejs/node#31845).

@kmadsen
Copy link
Author

kmadsen commented Sep 22, 2020

thanks @cyungmann! experimental warning is gone.

➜  node --version
v13.7.0
➜  ...
lots of commands to update my node
...
➜  node --version
v14.11.0
➜  node index.js testing
Verified test

@kmadsen kmadsen closed this as completed Sep 22, 2020
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