How to get specific version of MDBReact?


Topic: How to get specific version of MDBReact?

wsyed asked 5 years ago

The master branch of gitlab mdb repo is used and there are many missing dependency errors.

How can I use a specific version of MDBReact? I use the auth-url to git in my package-json for MDB React.

"mdbreact": "git+https://oauth2:*@git.mdbootstrap.com/mdb/react/re-pro.git" is what I have in my package json.

Adding a #v.4.21.1 at the end of url does not get the specific branch/tag of repo.

Expected behavior No errors while npm install or start

Actual behavior Throws error

Failed to compile.. /node_modules/mdbreact/dist/mdbreact.esm.jsCannot find module: 'focus-trap-react'. Make sure this package is installed.


Piotr Glejzer staff answered 5 years ago

Do you have a specific token to access our gitlab?
git+https://your-token@git.mdbootstrap.com/mdb/react/re-pro.git#4.22.0
git+https://your-token@git.mdbootstrap.com/mdb/react/re-pro.git#4.21.1 etc.

We didn't add a tag with version 4.22.1 but we will fix this as soon as possible.

Did you install node_modules? The focus trap was added version #4.22.0 and it will not work with previous versions.


wsyed commented 5 years ago

Yes I do. I didnt realize it was #4.21.1 and just used #v.4.21.1 Thanks, #4.21.1 worked.


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: 4.22.1
  • Device: mac
  • Browser: chrome
  • OS: Ubuntu
  • Provided sample code: No
  • Provided link: Yes