-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Error after updating eslint to 8.1.0 #427
Comments
Supporting |
https://eslint.org/docs/8.0.0/user-guide/migrating-to-8.0.0#remove-cliengine seems to be useful |
any updates? |
I am running into this issue as well when updating to |
@haase1020 Support for ESLint 8 is coming (see prettier/prettier-eslint#696). However there was an issue with the publishing process and it didn't push out a new version. In short, do not update to ESLint 8 just yet. |
@idahogurl Thanks for your work on this. I'm running the following (all the latest versions, AFAICT):
... and yet I'm still seeing:
|
Since prettier/prettier-eslint#696 is merged and |
hey @georgecrawford same here
|
Hey,
once I update eslint from 7.32.0 to 8.1.0. I see an error on my command line when I run
prettier-eslint
:Scripts:
My config:
prettier-eslint-cli
version: 5.0.1prettier
version: 2.4.1eslint
version: 8.1.0prettier-eslint shows error:
prettier-eslint [ERROR]: There was trouble creating the ESLint CLIEngine. prettier-eslint-cli [ERROR]: There was an error formatting "/Users/me/workspace/company/app/frontend/package.json": TypeError: CLIEngine is not a constructor at getESLintCLIEngine (/Users/me/workspace/company/app/frontend/node_modules/prettier-eslint/dist/utils.js:403:12) at getESLintConfig (/Users/me/workspace/company/app/frontend/node_modules/prettier-eslint/dist/index.js:210:51) at format (/Users/me/workspace/company/app/frontend/node_modules/prettier-eslint/dist/index.js:75:71) at MapSubscriber.project (/Users/me/workspace/company/app/frontend/node_modules/prettier-eslint-cli/dist/format-files.js:268:54) at MapSubscriber._next (/Users/me/workspace/company/app/frontend/node_modules/rxjs/internal/operators/map.js:49:35) at MapSubscriber.Subscriber.next (/Users/me/workspace/company/app/frontend/node_modules/rxjs/internal/Subscriber.js:66:18) at AsyncSubject.Subject.next (/Users/me/workspace/company/app/frontend/node_modules/rxjs/internal/Subject.js:60:25) at AsyncSubject.complete (/Users/me/workspace/company/app/frontend/node_modules/rxjs/internal/AsyncSubject.js:53:35) at handler (/Users/me/workspace/company/app/frontend/node_modules/rxjs/internal/observable/bindNodeCallback.js:53:33) at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:69:3) failure formatting 1 file with prettier-eslint
The text was updated successfully, but these errors were encountered: