-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Cannot find module './utils/ast-utils' #262
Comments
I have a similar issue — but with react-hooks — which also just recently started acting up and not formatting anything anymore:
I'm wondering if this PR will fix things: #242 |
Please test with |
Thanks, is it published on |
@selfagency Yeah, should be published to npm, https://www.npmjs.com/package/prettier-eslint |
Sadly no improvement
|
This didn't fix my issue :( However, the following steps did seem to rectify the issue:
¯\_(ツ)_/¯ |
Problem still prevails with newest version of VS Code. Tried reinstalling everything and while trying to format JS file this happens:
|
Stale issue |
Why it is closed? Still not working! |
/reopen |
I got the same issue, but i think mostly because the newest version of eslint. Error: Cannot find module 'eslint/lib/rules/utils/ast-utils'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/Users/xieww/Desktop/CRN/FlightCharterPlane/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js:24:21)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3) |
I am getting the same error. |
Same:
|
@victoriatomzik just started getting this error too. Maybe this is something new? Like, package become broken |
I believe @victoriatomzik's issue was related to typescript-eslint not supporting ESLint 5. typescript-eslint/typescript-eslint#2917 was recently merged which fixes this. This PR is available on NPM at/above 4.12.1-alpha.1 |
I am getting this error
|
Versions:
prettier-eslint
version: 9.0.0node
version: 10.17.0npm
(oryarn
) version: yarn 1.19.1Have you followed the debugging tips?
Yes
Relevant code or config
https://gist.github.com/selfagency/d09dddd361376e47d515a0f1483b03de
What I did:
I use
prettier-eslint
via Vetur in VS Code and it's been working just fine up until today, when it started throwing the following error.What happened:
Problem description:
Cannot find module './utils/ast-utils'
Suggested solution:
The text was updated successfully, but these errors were encountered: