我想在我的项目中使用 vue-simple-spinner,但是当我导入它时,我收到以下错误:
Could not find a declaration file for module 'vue-simple-spinner'.
'c:/Users/Korisnik/Desktop/projects/typescript-chord-app/node_modules/vue-
simple-spinner/dist/vue-simple-spinner.js' implicitly has an 'any' type.
Try `npm install @types/vue-simple-spinner` if it exists or add a new
declaration (.d.ts) file containing `declare module 'vue-simple-spinner';`
我创建了shims-spinner.d.ts
文件:
declare module 'vue-simple-spinner' {
import Spinner from 'vue-simple-spinner';
export default Spinner;
}
但后来我明白了Circular definition of import alias 'Spinner'
。
我怎样才能解决这个问题?