You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing this into a TS file, I get the following warning by typescript:
Could not find a declaration file for module
myproject/node_modules/.pnpm/[email protected]/node_modules/vitest-fail-on-console/dist/vitest-fail-on-console.es.js implicitly has an any type.
There are types at myproject/node_modules/vitest-fail-on-console/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'vitest-fail-on-console library may need to update its package.json or typings.
Description
I think the problem might be that you define your package.json like this:
Bug description
When importing this into a TS file, I get the following warning by typescript:
Description
I think the problem might be that you define your package.json like this:
This could solve it:
Expected outcome
No type errors.
More info
Check out this thread: microsoft/TypeScript#52363
And this helpful tool to check if it's set up correctly: https://arethetypeswrong.github.io/?p=vitest-fail-on-console%400.4.0
The text was updated successfully, but these errors were encountered: