Topic: Mdbreact css and Next.js
bgining2this free asked 3 years ago
When i add all the required css by mdbreact, next.js complains, is there a way to do this with a cdn ?
I get css import errors
When importing all this.-
So maybe a cdn link could be the solution so i can add that in the _document.js ? Or http link ?
I already fix an issue with CSS import and icons what you can see at my GitHub repo :
If you can't use my repo as a template, please change in your
_app.js file as in the example below:
import '@fortawesome/fontawesome-free/js/all'; import 'bootstrap-css-only/css/bootstrap.min.css'; import 'mdbreact/dist/css/mdb.css';
Then remove from
@zeit/next-css dependency. After that please remove your
yarn.lock file and
node_modules folder and then type in your terminal
npm i command. After these steps, everything should be fine.
Hello, I would need some help if you don't mind .. infact I'm trying to put mdbreact on my nextjs project and it tells me this .. I'm on the latest version of Next React Mdbreact ..
Check my article about how to integrate mdbreact with Next.js :)
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.11.0
- Device: Desktop
- Browser: Google Chrome
- OS: Linux
- Provided sample code: No
- Provided link: No