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

engines.node in package.json needs to be updated #438

Open
3cp opened this issue Sep 5, 2023 · 1 comment
Open

engines.node in package.json needs to be updated #438

3cp opened this issue Sep 5, 2023 · 1 comment

Comments

@3cp
Copy link

3cp commented Sep 5, 2023

The nodejs version in package.json needs to be updated.

"engines": {
  "node": ">=8.6"
},

Because lib/queue.js uses class field definition syntax which requires at least nodejs v12.

module.exports = class Queue {
  _queue = [];
  _executing = false;
  _jobRunner = null;

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Public_class_fields#browser_compatibility

Reported in aurelia/cli#1203

@3cp
Copy link
Author

3cp commented Sep 5, 2023

Or refactor the code to remove the usage of the new syntax, if enquirer does want to support outdated nodejs versions.

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

1 participant