Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Problem with mdbreact git repo

chris.hoffman pro asked 5 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 5 years ago


Hi @chris.hoffman

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 5 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 5 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.



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

  • 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