-
Notifications
You must be signed in to change notification settings - Fork 9
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
Can't run the sample #2
Comments
Can you please let me know your Node JS and inquirer versions? |
Sure I ran the command and this is the output C:>npm version |
this is because Inquirer v9 and higher are native esm modules, so they don't support common js syntax. downgrade to a lower version of inquirer and that should fix your problem |
Thanks for the hint @scaevitas . @juanwalker , hopefully the workaround above works for you, but I'll try to find some time to update this to be compatible with Inquirer v9+, but it could be a number of weeks before I manage it. |
@insightfuls @scaevitas I downgrade to 8.2.4 and I manage to render the tree with the options at first level but Im not able to see sub levels, I don't see any error in the screen from this, any guessings about what may be wrong? Thank you |
@juanwalker I downgraded to 8.0.0 (as suggested in the inquirer repository) and it worked fine I also went into the directory of inquirer tree to downgrade it to 8.0.0, so that could be what caused it to work |
you are right! Im so fool I didn't use the arrows. Is working with versions lower than 9! |
@insightfuls , could you please update this package can be used on es6 module project?
When I tried it, it gives me error
I use |
When I run the example index.js is showing me the error:
The text was updated successfully, but these errors were encountered: