【问题标题】:Module not found: Can't resolve './data:application/font-woff;charset=utf-8;base64,找不到模块:无法解析 './data:application/font-woff;charset=utf-8;base64,
【发布时间】:2021-12-25 18:12:30
【问题描述】:

在 Nextjs 中使用 swiper 时出错。

“下一个”:“^12.0.3”,“swiper”:“^7.2.0”

我正在使用该版本,我想知道如何解决问题。

找不到模块:无法解析 './data:application/font-woff;charset=utf-8;base64

【问题讨论】:

    标签: reactjs next.js swiper


    【解决方案1】:

    我有同样的问题,我通过阅读 stackoverflow 上的几个地方解决了它。

    "swiper": "^6.8.4" 降级到这个版本。 我在 swiper css 导入中也遇到了错误。我在其中导入了 scss 模块并在 _app.tsx 中调用它们。

    The code that made the compile problem.

    我从 scss 中提取上述代码并编译它。下一个模块样式构造无法编译 base:64。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-23
      • 2021-10-16
      • 2021-08-16
      • 2019-05-10
      • 2021-10-17
      • 2021-11-01
      相关资源
      最近更新 更多