Error: Invalid hook call


Topic: Error: Invalid hook call

Expected behavior

Calander Should Render

Actual behavior Error: 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.) package.json


Piotr Glejzer staff commented 4 years ago

Do you have a problem with calendar plugin or component in pro version?


surya@learningturf.com commented 4 years ago

The issue is with he calendar plugin


surya@learningturf.com commented 4 years ago

This issue has been resolved by running npm dedupe command


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

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