Topic: Error: Invalid hook call.

roshanpr pro asked 3 years ago


Hi,

Am getting a Invalid hook call when trying to load a few components such as MDBNavbarNav, MDBNavItem, MDBBtn etc.,

Is there any specific update I need to do? Currently in my package.json, am using it as "mdbreact": "git+https://XXXXXXXXXXXXXX@git.mdbootstrap.com/mdb/react/re-pro.git"

My react versions below:

"react": "^16.12.0", "react-dom": "^16.12.0",


Piotr Glejzer staff commented 3 years ago

Did you try to use the latest version of React? MDBReact 5.0.0+ is using React 17+.


Bobby Renecker free answered 3 years ago


I am getting this problem as well.


Krzysztof Wilk staff commented 3 years ago

Hi!

I answered you here: https://mdbootstrap.com/support/react/error-invalid-hook-call-896d7/

Keep coding!



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: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 5.0.1
  • Device: Laptop
  • Browser: Chrome
  • OS: Mac
  • Provided sample code: No
  • Provided link: Yes