Open pjg opened 1 year ago
You're talking about eslint-import-resolver-webpack? Can you confirm that it's breaking for you in v0.13.7?
How are you installing packages - npm, or something else?
Yes, sorry, I meant eslint-import-resolver-webpack. It breaks for me in any version higher than 0.13.4 (so still in v0.13.7). It marks every single "import" as unresolvable for me. I'm using npm with lockFile version 3. Now that I think of it, the issue might be my package-lock.json version.
I wouldn't expect the lockfile version to matter; that just tells npm what metadata is stored in the lockfile.
Are you getting these errors on the command line, or in your editor? If the latter, did you open it at the root of the repo?
I'm getting those errors both from the command line and in my editor. I downgraded the lockFile to version 2, but that did not help things in 0.13.7.
Is prop-types
, eg, installed in node_modules/prop-types
?
Yes it is.
and you're running the linter from the root of the repo, where your package.json and eslint config and node_modules all are?
(thanks for bearing with me; i'm not sure why this would be happening since resolve v2 and v1 largely work the same)
and you're running the linter from the root of the repo, where your package.json and eslint config and node_modules all are?
Yes, I am. I think I should probably prepare a minimal reproducible testcase. Or maybe start with disabling other eslint plugins, and seeing what that does...
That’d be great!
The ESLint error is as follows for every single dependency in any of my JS/JSX files:
Downgrading to v0.13.4 fixes things for me. I have a fairly standard config, nothing specific defined/configured for the import plugin specifically.
I suspect it's something to do with the switch to
"resolve": "^2.0.0-next.4",
.Possibly related: https://github.com/import-js/eslint-plugin-import/issues/2859