Topic: Steps for adding MDB to existing project
pcdavis pro asked 6 years ago
./src/index.js
Module not found: Can't resolve 'mdbreact/dist/css/mdb.css' in 'c:UserspcdavDesktopWebDevDevMntJan26-Fridaysimulations-onesrc'
When I open the node modules folder, I find mdbreact
but when I scan my files there is no mdb.css file anywhere.
Am I supposed to drag and drop folders and files from the zipped pro download into my project?
jkilbride free answered 6 years ago
jkilbride free commented 6 years ago
Well, some of the other components are working. Container, Row, Col, and Input all seem okay. It's only the Card example, so far, that I'm having problems with.jkilbride free commented 6 years ago
Ok, I figured it out. The Card in the Basic Example has a width of 23rem, which isn't in the example code. I had to look at the page source in Chrome Developer Tools to find it. Setting the width of the Card to 23rem fixed the issue I was having. For the MDB staff, you should add that to the example code. It's very confusing without it.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: Yes
- Provided link: No