Palma free asked 4 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 https://fb.me/react-invalid-hook-call 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: https://mdbootstrap.com/articles/react/materialize-your-next-js-project-with-mdbootstrap-for-react/


Piotr Glejzer staff commented 4 years ago

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

https://github.com/JakubChm/nextjs-mdbreact


Palma free answered 4 years ago


Repo is ok!.

The error occurs when starting the application.


Piotr Glejzer staff commented 4 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.

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: 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