Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: MDBootstrap- Gatsby- Netlify

Ana free asked 5 years ago


I'm using MDB React in Gatsby JS, it works in development but when I try to deploy with Netlify I get a error. Previously to install MDB and react-router-dom the site deployed correctly. I know that Gatsby works with reach router. Any suggestion or idea?

Output in Netlify:

9:31:59 AM: WebpackError: Invariant failed 9:31:59 AM:
9:31:59 AM: - tiny-invariant.esm.js:9 invariant 9:31:59 AM: [lib]/[tiny-invariant]/dist/tiny-invariant.esm.js:9:1 9:31:59 AM:
9:31:59 AM: - history.js:250 createBrowserHistory 9:31:59 AM: [lib]/[history]/esm/history.js:250:115 9:31:59 AM:
9:31:59 AM: - react-router-dom.js:29 new BrowserRouter 9:31:59 AM: [lib]/[react-router-dom]/esm/react-router-dom.js:29:41 9:31:59 AM:
9:31:59 AM: - bootstrap:22 c 9:31:59 AM: lib/webpack/bootstrap:22:1 9:31:59 AM:
9:31:59 AM: - bootstrap:25 Sa 9:31:59 AM: lib/webpack/bootstrap:25:1 9:31:59 AM:
9:31:59 AM: - bootstrap:30 a.render 9:31:59 AM: lib/webpack/bootstrap:30:1 9:31:59 AM:
9:32:00 AM: failed during stage 'building site': Build script returned non-zero exit code: 1 9:31:59 AM: - bootstrap:30 a.read 9:31:59 AM: lib/webpack/bootstrap:30:1



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.13.0
  • Device: MacBook Pro
  • Browser: Chrome
  • OS: macOS High Sierra
  • Provided sample code: No
  • Provided link: No