[Vuejs]-Typescript. Declare module in npm packet doesnt work

0πŸ‘

It sounds like you have copies of the file shims.d.ts in both project β€œA” and β€œB”? And the problem is that when compiling β€œB” the type definitions for tiptap are not found?

A common problem is the location of the .d.ts file. It must be in a directory where TypeScript will look for source files. Check the "include" and "exclude" settings in your tsconfig.json if you have those options set, and make sure that shims.d.ts is in one of the included directories, and does not match any of the exclude patterns.

Leave a comment