【问题标题】:reactstrap List.name='List' error in gatsby while buildingreactstrap List.name='List' 构建时 gatsby 错误
【发布时间】:2022-01-30 02:07:28
【问题描述】:

gatsby 构建总是在 reactstrap 的 List.name='List' 这条线上失败。我尝试了不同的解决方案,但没有帮助。

- reactstrap 9.0.1 版 - 盖茨比版 ^3.14.4 - 引导版本 5

【问题讨论】:

  • 您尝试过哪些解决方案? List.name="List" 的赋值是在你的代码中还是来自库?
  • 它来自 reactstrap 库

标签: reactjs gatsby bootstrap-5 netlify reactstrap


【解决方案1】:

您是否尝试过添加空加载程序来绕过 SSR?

exports.onCreateWebpackConfig = ({ actions, loaders, getConfig }) => {
    actions.setWebpackConfig({
      module: {
        rules: [
          {
            test: /reactstrap/,
            use: loaders.null(),
          },
        ],
      },
    })
}

reactstrap 更改为node_modules 中的确切文件夹名称。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-07-25
    • 2020-10-23
    • 2019-10-28
    • 1970-01-01
    • 2021-04-08
    • 1970-01-01
    • 2022-06-18
    相关资源
    最近更新 更多