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
- replace nullish coalescing operator with ternary #1046 — committed to tys1128/Inquirer.js by tys1128 3 years ago
- pin inquirer to `v8.1.2` see https://github.com/SBoudrias/Inquirer.js/issues/1046 — committed to webdriverio/webdriverio by christian-bromann 3 years ago
- inquirer has introduced unexpected breaking change https://github.com/SBoudrias/Inquirer.js/issues/1046 — committed to liara-cloud/cli by mhemrg 3 years ago
- Roll back dependency inquirer to v8.1.3 https://github.com/SBoudrias/Inquirer.js/issues/1046 — committed to ayoubamine/backsync by ayoubamine 3 years ago
8.1.5 is out fixing the Node compatibility issue.
my node version is below v14!
@sxxhlx probably want to roll back to 8.1.3?
same problem ,this
??
token is not supported below node@14.0.0Please 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