Topic: Usage in Next.js
dnobes@macleanengineering.com pro premium priority asked 9 months 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.)
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 9 months 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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- 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