Problem installation mdbreact


Topic: Problem installation mdbreact

Pierpaolo Goffredo asked 6 years ago

Goodmorning, I have an issue about mdbreact installation. I use the command by npm, once it has done, when I paste the various imports in the "index.js" file, the terminal say to me this: "module not found: can't resolve 'font-awesome/css/font-awesome.min.css' react". How can i solve this? I really need to fix it beacuse i'm developping an app using this fantastic theme for my degree in IT. Looking for an help.

Jakub Mandra staff premium answered 6 years ago

Hello Pierpaolo, Which type of installation did you choose? Your index.js should look like this (and only like this - sequence of imports is important).
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import 'font-awesome/css/font-awesome.min.css';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'mdbreact/dist/css/mdb.css';
import App from './App';

ReactDOM.render(, document.getElementById('root'));
Please write here for further help. Regards, Jakub from MDB
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No