无法找到模块“swiper”的声明文件。“D:/html/01_Promise/app/node_modules/_swiper@5.4.5@swiper/js/swiper.js”隐式拥有 "any" 类型。
尝试使用
npm i --save-dev @types/swiper
(如果存在),或者添加一个包含 declare module 'swiper';
的新声明(.d.ts)文件ts(7016)Component options are wraped by
defineComponent()
internally to support intellisense on IDE for backward compatible, but this is an hacking which lead to this component type inconsistent with same script code on .js / .ts. Recommended wrap component options by Vue.extends()
or defineComponent()
. Or you can configure "experimentalShamefullySupportOptionsApi": true / false
in "vueCompilerOptions"
property in tsconfig / jsconfig to disable this warning.volar