Palma asked 2 years ago

Expected behavior MDB pro with nextjs

Actual behavior Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See for tips about how to debug and fix this problem.

Resources (screenshots, code snippets etc.) This link is not for pro version and neither working with free version:

Piotr Glejzer staff commented 2 years ago

where do you have that error?
Did you check this repo below?

Palma answered 2 years ago

Repo is ok!.

The error occurs when starting the application.

Piotr Glejzer staff commented 2 years ago

I don't see that's warnings/errors in the console. Did you add your code to this?

Please insert min. 20 characters.


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



Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.25.3
  • Device: Notebook
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes