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

tsc can't find type declarations #108

Open
lg250137 opened this issue Sep 2, 2023 · 0 comments
Open

tsc can't find type declarations #108

lg250137 opened this issue Sep 2, 2023 · 0 comments

Comments

@lg250137
Copy link

lg250137 commented Sep 2, 2023

Upon upgrading to mock-argv v3.0.0, I get this error from tsc:

[REDACTED].test.ts:3:22 - error TS7016: Could not find a declaration file for module 'mock-argv'. '[REDACTED]/node_modules/mock-argv/dist/index.js' implicitly has an 'any' type.
  There are types at '[REDACTED]/node_modules/mock-argv/types.d.ts', but this result could not be resolved when respecting package.json "exports". The 'mock-argv' library may need to update its package.json or typings.

It looks like types must be explicitly exported: https://stackoverflow.com/a/76212193/2124637.

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

No branches or pull requests

1 participant