-1

enter image description here

gatsby build is always failing on this line List.name='List' of reactstrap. I tried different solutions but not helpful.

- reactstrap version 9.0.1 - gatsby version ^3.14.4 - bootstrap version 5

1 Answers1

0

Have you tried adding a null loader to bypass SSR?

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

Change reactstrap for the exact folder name in node_modules.

Ferran Buireu
  • 28,630
  • 6
  • 39
  • 67