一、报错原因:Swiper的JS文件没有加载成功,或者说swiper丢失了依赖(正常操作是:加载后再初始化Swiper)

二、解决方法:在初始化 Swiper 的js文件中导入 Swiper

  import Swiper from '../lib/swiper-4.2.2.min.js'; 

webpack Uncaught ReferenceError: Swiper is not defined

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2021-05-07
  • 2021-06-29
猜你喜欢
  • 2021-04-21
  • 2021-06-30
  • 2022-12-23
  • 2021-09-16
  • 2021-06-16
  • 2021-05-28
  • 2021-09-15
相关资源
相似解决方案