Inquirer.js: Unexpected token '??'

Looks like on line 126 of packages/inquirer/lib/prompts/rawlist.js, there is a ternary with an accidental added ?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 16 (3 by maintainers)

Commits related to this issue

Most upvoted comments

8.1.5 is out fixing the Node compatibility issue.

image

my node version is below v14!

same problem ,this ?? token is not supported below node@14.0.0

@sxxhlx probably want to roll back to 8.1.3?

same problem ,this ?? token is not supported below node@14.0.0

Please do lock your versions on your project and save yourself some trouble when issues like this arise in any OSS package you’re using. We’re unfortunately not having a 24/7 red line.

We’ll have a fix out soon; but a breaking build due to automatically updated dependencies is something you can prevent in many ways.

Breaking change. Downgrade version to 8.1.2