Install react-pro 5.0.1


Topic: Install react-pro 5.0.1

shmeltex pro premium priority asked 4 years ago

When I'm installing react-pro 5.0.1 I'm getting unresolved dependency. What am I missing?

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: react@17.0.1
npm ERR! node_modules/mdbreact/node_modules/react
npm ERR!   react@"17.0.1" from mdbreact@5.0.1
npm ERR!   node_modules/mdbreact
npm ERR!     mdbreact@"git+https://xxxxx@git.mdbootstrap.com/mdb/react/re-pro.git" from the root project
npm ERR!   peer react@"17.0.1" from react-dom@17.0.1
npm ERR!   node_modules/mdbreact/node_modules/react-dom
npm ERR!     react-dom@"17.0.1" from mdbreact@5.0.1
npm ERR!     node_modules/mdbreact
npm ERR!       mdbreact@"git+https://xxxxx@git.mdbootstrap.com/mdb/react/re-pro.git" from the root project
npm ERR!   2 more (react-toastify, react-transition-group)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.3.0" from @material-ui/core@3.9.3
npm ERR! node_modules/mdbreact/node_modules/@material-ui/core
npm ERR!   @material-ui/core@"3.9.3" from mdbreact@5.0.1
npm ERR!   node_modules/mdbreact
npm ERR!     mdbreact@"git+https://xxxxx@git.mdbootstrap.com/mdb/react/re-pro.git" from the root project

Piotr Glejzer staff commented 4 years ago

Did you try remove node modueles and clear cache?


shmeltex pro premium priority commented 4 years ago

Yes, I did remove node_modules and cleared cache with npm cache clear --force.


shmeltex pro premium priority commented 4 years ago

Also, just tried

npx create-react-app test
cd test
npm install git+https://xxxx@git.mdbootstrap.com/mdb/react/re-pro.git

and got the same "Could not resolve dependency" result


Piotr Glejzer staff commented 4 years ago

check this topic https://stackoverflow.com/questions/64573177/unable-to-resolve-dependency-tree-error-when-installing-npm-packages


shmeltex pro premium priority commented 4 years ago

@Piotr Glejzer, --legacy-peer-deps does suppress error messages and completes npm install. However, it still installs @material_ui/core@3.9.3 which depends on react@16. Any plans to upgrade material_ui to a newer version?


Piotr Glejzer staff commented 4 years ago

We will remove this dependecy soon


shmeltex pro premium priority commented 4 years ago

Super! Will wait for it.


leszek.winiarski pro answered 4 years ago

I have the same issue, are those dependencies updated already?

Also wanted to install my React library version 4.x using GitLab. The current link git+https://oauth2:YOUR_TOKEN_GOES_HERE@git.mdbootstrap.com/mdb/react/re-pro.git points to ver 5.0. How can I install libraries with ver 4.x?


Krzysztof Wilk staff commented 4 years ago

Hi!

We didn't update these dependencies yet. Also, there's no way to install older versions of the package from GitLab.

Keep coding!


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: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 5.0.1
  • Device: N/A
  • Browser: N/A
  • OS: macOS
  • Provided sample code: No
  • Provided link: No
Tags