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
Update, adding a types declareation in exports fild can be the easiest way, so I make a pr to solve issue like this when moduleResolution is NodeNext or Node16:
packages/create/src/index.ts(2,21): error TS7016: Could not find a declaration file for module 'cac'. '/home/mister-hope/projects/vuepress-theme-hope/node_modules/.pnpm/[email protected]/node_modules/cac/dist/index.mjs' implicitly has an 'any' type.
Try `npm i --save-dev @types/cac` if it exists or add a new declaration (.d.ts) file containing `declare module 'cac';`
Typescript cannot find cac types after switching modueResolution to NodeNext .
I think a .d.mts file should be added to avoid this error.
The text was updated successfully, but these errors were encountered: