Topic: Errors when installing the demo package
                  
                  Nutritek
                  premium
                  asked 3 years 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.
                      
                      Nutritek
                      premium
                        answered 3 years 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 3 years 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)
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: 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
 
Krzysztof Wilk staff commented 3 years 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?