Topic: Problem with mdbreact git repo
                  
                  chris.hoffman
                  pro
                  asked 6 years ago
                
I'm using the pro git repo (I couldn't pick that as the version) and I'm not able to use any components. I receive the following error:
Module not found: Error: Can't resolve 'focus-trap-react' in '.../node_modules/mdbreact/dist'
Is there anything I can do on my end to fix this?
                      
                      Konrad Stępień
                      staff
                        answered 6 years ago
                    
Do you can remove your node_modules folder and package-lock.json or yarn.lock and then install with npm i modules? 
Also, you can send me your package.json file with the censored token?
Best regards, Konrad.
chris.hoffman pro commented 6 years ago
Cześć @Konrad Stępień,
Ok something was weird there. I think deleting package-lock.json might have helped. However some of my tests are now failing (which were passing before) with the message "You can't have a focus-trap without at least one focusable element".
here's my censored mdbreact dependency
"mdbreact": "git+https://oauth2:<censored_for_your_viewing>@git.mdbootstrap.com/mdb/react/re-pro.git"
Konrad Stępień staff commented 6 years ago
Hmm, we have added the property for modal disableFocusTrap. Can you tell me what test you have? For what component etc? If you need you can use this property for disable focus trap in the modal. 
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Pro
 - Premium support: No
 - Technology: MDB React
 - MDB Version: 4.22.1
 - Device: Desktop
 - Browser: Chrome
 - OS: Linux (Ubuntu)
 - Provided sample code: No
 - Provided link: No