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

import 'node' in declartion file is un-resolvable. #472

Closed
ahmedissa opened this issue Aug 27, 2024 · 1 comment · Fixed by #471
Closed

import 'node' in declartion file is un-resolvable. #472

ahmedissa opened this issue Aug 27, 2024 · 1 comment · Fixed by #471

Comments

@ahmedissa
Copy link
Contributor

ahmedissa commented Aug 27, 2024

Hi,

i was trying out @fastify/jwt in a new project. I have noticed my eslint rule "import/no-cycle" was failing,
because it can't resolve the import.

[Error - 23:34:21] EslintPluginImportResolveError: unable to load resolver "node".
Occurred while linting /app/src/plugins/auth/authorization.ts:2
Rule: "import/no-cycle"
    at requireResolver (/app/node_modules/eslint-module-utils/resolve.js:201:17)
    at fullResolve (/app/node_modules/eslint-module-utils/resolve.js:141:22)
    at Function.relative (/app/node_modules/eslint-module-utils/resolve.js:158:10)
    at remotePath (/app/node_modules/eslint-plugin-import/lib/ExportMap.js:811:381)
    at captureDependency (/app/node_modules/eslint-plugin-import/lib/ExportMap.js:817:463)
    at captureDependencyWithSpecifiers (/app/node_modules/eslint-plugin-import/lib/ExportMap.js:817:144)
    at /app/node_modules/eslint-plugin-import/lib/ExportMap.js:822:42
    at Array.forEach (<anonymous>)
    at ExportMap.parse (/app/node_modules/eslint-plugin-import/lib/ExportMap.js:821:427)
    at ExportMap.for (/app/node_modules/eslint-plugin-import/lib/ExportMap.js:807:201)

I don't have enough experiance in typescript. It can be possible the import exists for older versions.
if that case, you can close the PR #471 / Issue and sorry for the inconvenience.

typescript version ^5.5.0
eslint ^8.57.0
eslint-plugin-import ^2.29.0

Thanks

Copy link
Contributor

🎉 This issue has been resolved in version 4.0.3 🎉

The release is available on:

Your optic bot 📦🚀

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

Successfully merging a pull request may close this issue.

1 participant