-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[parser] Error with ESLint 6.0.0 pre-releases #563
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
Comments
Related: [indent-new-do-not-use] Error with ESLint 6.0.0-alpha.2 #564 |
ESLint 6 has moved into the RC phase with rc.0 |
We could probably temporarily support both ESLint 5 and 6 by converting these imports to requires and wrapping them in a try catch, what do you think @mysticatea? Are there any other changes to watch out for? |
In ideal, we should not import any private files of ESLint. It's not a part of the public API, so those files can be changed anytime (even if as a patch release). |
As a quick fix, #614 attempts to monkey-patch this. |
FYI this should be fixed by #628 |
What code were you trying to parse?
What did you expect to happen?
Able to parse TypeScript files.
What actually happened?
Error: Failed to load parser '@typescript-eslint/parser/dist/parser.js': Cannot find module 'eslint/lib/util/traverser'
typescript-eslint/packages/parser/src/parser.ts
Line 8 in cca1714
Versions
@typescript-eslint/parser
1.9.0
TypeScript
3.4.5
ESLint
6.0.0-alpha.2
node
10.15.3
npm
6.9.0
The text was updated successfully, but these errors were encountered: