Topic: Looking for help: \'yarn build\' fails
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 https://yarnpkg.com/en/docs/cli/run for documentation about this command.
... MINGW64 [my folder]-v2 (master)
$
Anna Morawska staff answered 6 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 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: 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
Tags
Related topics
okia pro commented 6 years ago
FYI: I've tried to get mdb react pro from #dev branch, as recommended [here](https://mdbootstrap.com/support/react/build-in-mdb-pro-react-4-7-1-fails/) , but doing this causes yarn install to hang up indefinitely :(