Topic: Looking for help: \'yarn build\' fails

okia pro asked 4 years ago

Hello! I am trying to build my project for deployment but build process fails because of mdbreact.  The output is below. I am working on Windows machine, the problem is reproable in both PowerShell and GitBash. Please help !!!
... MINGW64 [my project folder] (master)                                                         
$ yarn build                                                                                                                                          
yarn run v1.9.2                                                                                                                                       
$ react-scripts build                                                                                                                                 
Creating an optimized production build...                                                                                                             
Failed to compile.                                                                                                                                    
Module not found: Error: Can't resolve 'bootstrap/dist/css/bootstrap.min.css' in '[my project folder]\src'  
error Command failed with exit code 1.                                                                                                                
info Visit for documentation about this command.                                                                  
... MINGW64 [my folder]-v2 (master)                                                         

okia pro commented 4 years ago

FYI: I've tried to get mdb react pro from #dev branch, as recommended [here]( , but doing this causes yarn install to hang up indefinitely :(

Anna Morawska staff answered 4 years ago

Hi okia, it's probably because we don't longer use bootstrap as a dependency. It has been mention here, in our changelog. Please alter import statement in your index.js file into: import 'bootstrap-css-only/css/bootstrap.min.css' It should help. Best, Ania

Please insert min. 20 characters.


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



Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.7.1
  • Device: PC
  • Browser: Firefox
  • OS: Windows
  • Provided sample code: No
  • Provided link: No