【发布时间】:2021-12-25 18:12:30
【问题描述】:
在 Nextjs 中使用 swiper 时出错。
“下一个”:“^12.0.3”,“swiper”:“^7.2.0”
我正在使用该版本,我想知道如何解决问题。
找不到模块:无法解析 './data:application/font-woff;charset=utf-8;base64
【问题讨论】:
在 Nextjs 中使用 swiper 时出错。
“下一个”:“^12.0.3”,“swiper”:“^7.2.0”
我正在使用该版本,我想知道如何解决问题。
找不到模块:无法解析 './data:application/font-woff;charset=utf-8;base64
【问题讨论】:
我有同样的问题,我通过阅读 stackoverflow 上的几个地方解决了它。
"swiper": "^6.8.4" 降级到这个版本。 我在 swiper css 导入中也遇到了错误。我在其中导入了 scss 模块并在 _app.tsx 中调用它们。
The code that made the compile problem.
我从 scss 中提取上述代码并编译它。下一个模块样式构造无法编译 base:64。
【讨论】: