对于项目中包含的几个库*.d.ts文件,我收到了来自webpack的Invalid module name in augmentation错误。一个例子来自leaflet-draw,它的d.ts文件的顶部有以下模块声明:
declare module 'leaflet' {模块“leaflet”在'C:\Users***\Documents\GitHub***
在一个typescript (Angular 9)项目中,我试图导入一个私有的JS库。Try `npm install @types/my-private-repo` if it exists or add a new declaration (.d.ts) file containing`declare module 'my-private-repo/dist/util';`
我试图解决在typings文件夹中添加包含以下内容的声明<e