m0_65998687 2022-05-11 20:56 采纳率: 100%
浏览 160
已结题

请问vue3这种情况怎么解决就导入了swiper别的也插件也爆一样的 错误(标签-html|关键词-app)

img


无法找到模块“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

  • 写回答

2条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      问题事件

      • 系统已结题 6月11日
      • 已采纳回答 6月3日
      • 创建了问题 5月11日

      悬赏问题

      • ¥15 结构体数组文件读取问题
      • ¥15 写c++代码,第7题说一下使用的计算方法
      • ¥15 postman接口自动化测试报告实践总结
      • ¥15 有关c++的问题,利用相关知识
      • ¥15 求香农编码和解码的matlab代码
      • ¥20 ROS中的TEB局部规划问题
      • ¥20 关于#matlab#的问题:要求测出上面图片中所有同心圆的半径
      • ¥20 epanet软件运行问题
      • ¥15 Python 文件读取
      • ¥60 dpabi进行Alff计算时脑池有干扰信号