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

[Bug] 'Could not find a declaration file for module' error #1803

Closed
vveesseelliinnaa opened this issue Dec 14, 2023 · 1 comment
Closed

[Bug] 'Could not find a declaration file for module' error #1803

vveesseelliinnaa opened this issue Dec 14, 2023 · 1 comment
Labels
Bug Item which indicates that something is not working Regression Regression bug

Comments

@vveesseelliinnaa
Copy link
Contributor

Typescript v5 now defaults to "moduleResolution": "bundler" which does not respect the root-set "types" field, resulting in errors like the following:

Could not find a declaration file for module '@progress/kendo-react-buttons'. 'stackblitz:/node_modules/@progress/kendo-react-buttons/index.mjs' implicitly has an 'any' type.
  There are types at 'stackblitz:/node_modules/@progress/kendo-react-buttons/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@progress/kendo-react-buttons' library may need to update its package.json or typings.(7016)

I'm submitting a...

  • Regression report

Expected behavior

No errors to be thrown.

Minimal reproduction of the problem with instructions

  1. Open https://stackblitz.com/edit/vitejs-vite-6emofb?file=src%2FApp.tsx&terminal=dev
  2. Hover the @progress/kendo-react-button package to observe the error
@vveesseelliinnaa vveesseelliinnaa added Bug Item which indicates that something is not working Regression Regression bug labels Dec 14, 2023
@vveesseelliinnaa
Copy link
Contributor Author

Duplicated: #1802

@vveesseelliinnaa vveesseelliinnaa closed this as not planned Won't fix, can't repro, duplicate, stale Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Item which indicates that something is not working Regression Regression bug
Projects
None yet
Development

No branches or pull requests

1 participant