Topic: Using SCSS files in create-react-app project
cokicoki free asked 3 years ago
I am following a 5 min Quick Start to setup a custom-variables.scss, but I could not find mdb.scss file. There are only two files available at the node_modules/mdbreact/dist directory below: -mdb-free.scss -mdb-pro.scss
So when I typed npm start at the terminal to run my project, I got an error message that the module could not be found.
Would you kindly advise what went wrong?
Thank you very much.
I change the description of importing SCSS in CRA with mdbreact. I tested it and it is working.
Take a look now https://mdbootstrap.com/docs/react/getting-started/quick-start/
Have a nice day.
I think you refer the wrong solution. I have read and it is not the answer.
This file is not available mdb.scss so it caused the render error.
Please check again this link sir!
import our main scss file: index.js import "./assets/scss/mdb.scss"
Thank you Kuba.
Can you check this topic? I think is related to this post.
Let me know if it helps you.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.24.0
- Device: PC
- Browser: Mozilla Firefox
- OS: MS Windows 7
- Provided sample code: No
- Provided link: No