Topic: Errors when installing the demo package

Nutritek premium asked 1 month ago


Hello, I have the MDB React Pro 5.2.0 package. I followed the instructions and the app does not work, I keep getting errors. At first I had the error: Cannot find module 'react-chartjs-2'

It seemed similar to this issue: https://mdbootstrap.com/support/react/cant-resolve-react-chartjs-2/

I followed the instruction given by Krzysztof Wilk but no luck. Now im getting errors like: Uncaught Error: Invalid hook call.

Thank you in advance for you help.


Krzysztof Wilk staff commented 1 month ago

Hi!

Did you install it with yarn or npm? Could you do it with yarn and tell me if it works? I assume you are using the zip one, right?


Nutritek premium answered 1 month ago


Hi,

Thank you for the quick response. Yes, I was using NPM with the zip package. I tried yarn and everything worked first try.

Thank you!


Krzysztof Wilk staff commented 1 month ago

Hi!

Glad I could help :) for the future - you can also install dependencies with npm install --legacy-peer-deps command (this issue is probably caused by dependency conflicts)



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

  • User: Premium
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 4.2.0
  • Device: desktop
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: Yes
Tags