Topic: MDB Pro upgrade in existing projects
Andre Engelbrecht pro asked 6 years ago
Bartłomiej Malanowski staff answered 6 years ago
Andre Engelbrecht pro commented 6 years ago
Hi Bartlomiej, thank you for the response. I did, but I can only guess that I'm missing something, or I'm doing something wrong. My project has evolved quite a bit, I started with MDB Free jQuery version. It then changed to a react project with MDB React Free and now we've upgraded to the MDB Pro. In my index.jsx file I have the following (possibly legacy) imports: import 'font-awesome/css/font-awesome.min.css' import 'bootstrap/dist/css/bootstrap.min.css' import 'mdbreact/docs/css/mdb.min.css' << This reference is causing the issue These imports were required for MDB React Free to work properly. After upgrading to the pro version the docs folder is missing from the node_modulesmdbreact folder and thus the error. I can mitigate it by copying in the docs folder from another source, but surely this isn't how it's supposed to work? So what am I doing wrong? I have MDB Pro installed: "mdbreact": "git+https://oauth2:[MY_TOKEN_VALUE]@git.mdbootstrap.com/mdb/react/re-pro.git" << from package.json The quickstart guide mentions nothing abount addin any imports, so why do I need them? If i remove these my site looks terrible. Please help?Bartłomiej Malanowski staff commented 6 years ago
Try to change import ‘mdbreact/docs/css/mdb.min.css’ to import 'mdbreact/dist/css/mdb.css';Andre Engelbrecht pro commented 6 years ago
Hi, thanks, just wanted to let you know that this solution works.Andre Engelbrecht pro answered 6 years ago
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: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Bartłomiej Malanowski staff commented 6 years ago
Do you use MDB React or MDB jQuery?Andre Engelbrecht pro commented 6 years ago
MDB React - that's why I logged this question under the "MDB React" category :-)Andre Engelbrecht pro commented 6 years ago
I'm also now having issues with the Select component, it just does not want to open when clicked, but I suspect this also has to do with my installation not being 100% correct.Andre Engelbrecht pro commented 6 years ago
What is the proper way/procedure to install MDB Pro?