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

请问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条回答 默认 最新

  • 拾壹丨 2022-05-12 07:29
    关注

    node_modules模块下,没这个包,可能安装不成功

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

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

悬赏问题

  • ¥15 救!ENVI5.6深度学习初始化模型报错怎么办?
  • ¥30 eclipse开启服务后,网页无法打开
  • ¥30 雷达辐射源信号参考模型
  • ¥15 html+css+js如何实现这样子的效果?
  • ¥15 STM32单片机自主设计
  • ¥15 如何在node.js中或者java中给wav格式的音频编码成sil格式呢
  • ¥15 不小心不正规的开发公司导致不给我们y码,
  • ¥15 我的代码无法在vc++中运行呀,错误很多
  • ¥50 求一个win系统下运行的可自动抓取arm64架构deb安装包和其依赖包的软件。
  • ¥60 fail to initialize keyboard hotkeys through kernel.0000000000