Topic: Usage in Next.js

dnobes@macleanengineering.com priority asked 1 month ago


Expected behavior MDB component works with next.js

Actual behavior App crashes when trying to return any MDB component

Resources (screenshots, code snippets etc.) enter image description here enter image description here

The components only work when I specify 'use client'; but that defeats the purpose of a lot of this stuff. I have also tried the built in MDBClientOnly wrapper and that doesn't seem to work either. This is also a brand new next app that I have installed very few packages on, and I'm currently using this mdb package on 7.2.0 "git.mdbootstrap.com/mdb/react/mdb5/prd/mdb5-react-ui-kit-pro-essential".


Grzegorz Bujański staff answered 1 month ago


Thanks for reporting. We'll look into it. At the moment, the only thing I can do is close our components inside the 'use client' component. We will try to find a solution to this issue as quickly as possible.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 7.2.0
  • Device: Laptop
  • Browser: Edge
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No