-
-
Notifications
You must be signed in to change notification settings - Fork 33
Closed as not planned
Labels
Resolution: Not ReproducibleThe bug could not be reproduced.The bug could not be reproduced.Status: Awaiting ResponseIssue or PR awaits response from the creator.Issue or PR awaits response from the creator.Status: StaleThere has not been activity on this issue or PR for quite some time.There has not been activity on this issue or PR for quite some time.
Description
In my nodejs (22.x) project, I add eslint-plugin-functional 8.0.0 to devDeps, then add this line to eslint.config.js
const functional = require('eslint-plugin-functional')will throw this error:
$ yarn lint
Oops! Something went wrong! :(
ESLint: 9.20.1
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'typescript' imported from /home/ildella/projects/frankie/backend/node_modules/ts-api-utils/lib/index.js
at packageResolve (node:internal/modules/esm/resolve:857:9)
at moduleResolve (node:internal/modules/esm/resolve:926:18)
at defaultResolve (node:internal/modules/esm/resolve:1056:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:654:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:603:25)
at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:353:53)
at new ModuleJobSync (node:internal/modules/esm/module_job:341:34)
at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:413:11)
at new ModuleJobSync (node:internal/modules/esm/module_job:341:34)
at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:413:11)What is strange is that eslint-plugin-jest also depende on ts-api-utils but it does not create this problem.
So I assume some workaround should exists.
Any tip? Thanks.
Metadata
Metadata
Assignees
Labels
Resolution: Not ReproducibleThe bug could not be reproduced.The bug could not be reproduced.Status: Awaiting ResponseIssue or PR awaits response from the creator.Issue or PR awaits response from the creator.Status: StaleThere has not been activity on this issue or PR for quite some time.There has not been activity on this issue or PR for quite some time.