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
Typescript cannot find types for mitt when targeting esm while declaring moduleResolution: NodeNext.
importmittfrom'mitt';// or import{defaultasmitt}from'mitt';
Getting
error TS7016: Could not find a declaration file for module 'mitt'. '/home/mister-hope/projects/vuepress-theme-hope/node_modules/.pnpm/mitt@3.0.0/node_modules/mitt/dist/mitt.mjs' implicitly has an 'any' type.
The problem is that the export field is missing declaration file, also the project is not outputing a index.d.mts for index.mjs.
The text was updated successfully, but these errors were encountered:
Typescript cannot find types for mitt when targeting esm while declaring
moduleResolution: NodeNext
.Getting
The problem is that the export field is missing declaration file, also the project is not outputing a
index.d.mts
forindex.mjs
.The text was updated successfully, but these errors were encountered: