Skip to content

Cannot find module 'tslib' in v4.4.0 #456

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

Closed
FosRexx opened this issue May 26, 2025 · 1 comment · Fixed by un-ts/eslint-import-context#13 or #457
Closed

Cannot find module 'tslib' in v4.4.0 #456

FosRexx opened this issue May 26, 2025 · 1 comment · Fixed by un-ts/eslint-import-context#13 or #457

Comments

@FosRexx
Copy link

FosRexx commented May 26, 2025

When i run npx eslint . with [email protected], I get this error:

npx eslint .

<Project>/api-doc/main/doc-ui.ts
  1:1  error  Resolve error: Cannot find module 'tslib'
Require stack:
- <Project>/node_modules/.pnpm/[email protected][email protected]/node_modules/eslint-import-context/lib/index.js
- <Project>/node_modules/.pnpm/[email protected][email protected][email protected][email protected]_/node_modules/eslint-import-resolver-typescript/lib/index.cjs
- <Project>/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]__t_5b76abf6ac0eb8e72fce4ff04c6165ef/node_modules/eslint-module-utils/resolve.js
- <Project>/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]___00e39fa7207ca6dcb8d55c3e91e142ca/node_modules/eslint-plugin-import/lib/rules/no-unresolved.js
- <Project>/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]___00e39fa7207ca6dcb8d55c3e91e142ca/node_modules/eslint-plugin-import/lib/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1405:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)
    at Module._load (node:internal/modules/cjs/loader:1215:37)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1491:12)
    at require (node:internal/modules/helpers:135:16)
    at Object.<anonymous> (<Project>/node_modules/.pnpm/[email protected][email protected]/node_modules/eslint-import-context/lib/index.js:4:17)
    at Module._compile (node:internal/modules/cjs/loader:1734:14)  import/no-internal-modules
  1:1  error  Resolve error: Cannot find module 'tslib'
Require stack:
- <Project>/node_modules/.pnpm/[email protected][email protected]/node_modules/eslint-import-context/lib/index.js
- <Project>/node_modules/.pnpm/[email protected][email protected][email protected][email protected]_/node_modules/eslint-import-resolver-typescript/lib/index.cjs
- <Project>/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]__t_5b76abf6ac0eb8e72fce4ff04c6165ef/node_modules/eslint-module-utils/resolve.js
- <Project>/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]___00e39fa7207ca6dcb8d55c3e91e142ca/node_modules/eslint-plugin-import/lib/rules/no-unresolved.js
- <Project>/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]___00e39fa7207ca6dcb8d55c3e91e142ca/node_modules/eslint-plugin-import/lib/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1405:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)
    at Module._load (node:internal/modules/cjs/loader:1215:37)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1491:12)
    at require (node:internal/modules/helpers:135:16)
    at Object.<anonymous> (<Project>/node_modules/.pnpm/[email protected][email protected]/node_modules/eslint-import-context/lib/index.js:4:17)
    at Module._compile (node:internal/modules/cjs/loader:1734:14)  import/no-extraneous-dependencies

Downgrading to v4.3.5 works fine.

Missing dependency in v4.4.0?

@JounQin
Copy link
Collaborator

JounQin commented May 26, 2025

Thanks for reporting, working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants