Swiper中文论坛

标题: 问题求解: 原生js导入 import Swiper from "swiper"; 报错 [打印本页]

作者: lzbcoder    时间: 2020-5-27 18:41
标题: 问题求解: 原生js导入 import Swiper from "swiper"; 报错
本帖最后由 lzbcoder 于 2020-5-27 18:43 编辑

原生js导入 import Swiper from "swiper"; 报错
Uncaught TypeError: Failed to resolve module specifier "swiper". Relative references must start with either "/", "./", or "../".
swipre 缺少 export default 导出方式






欢迎光临 Swiper中文论坛 (http://bbs.swiper.com.cn/) Powered by Discuz! X3.2