Topic: React 17 Compatibility
thehotginburns premium asked 2 years ago
Are MDB v5 components compatible with React version 17?
As you can see in our changelog (https://mdbootstrap.com/docs/react/changelog/#v5-0-0 ) MDB React package was updated to React 17 in the 5.0.0 release. Anyway - our plugins are still working on React 16, but for now - there's no ETA for this :(
Some more info: this is only an issue when using npm7. npm install fails because mdbreact depends on material ui libraries that dont work with react 17. Lower versions of npm allow it. Yarn installs it with warnings.
For it to work in npm7 use either --force or --legacy-peer-deps flags. https://github.blog/2021-02-02-npm-7-is-now-generally-available/#peer-dependencies
I ended up using yarn
Is there an ETA now on making MDB React compatible with React 17 please?
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Premium
- Premium support: Yes
- Technology: MDB React
- MDB Version: 5.0.1
- Device: PC
- Browser: Chrome
- OS: Ubuntu
- Provided sample code: No
- Provided link: No