Skip to content

Tips and Tricks

Jonathan Niles edited this page Sep 17, 2017 · 1 revision

Fixing "Potentially unhandled rejection [2]: bootstrap.less wasn't found"

This error means that executed npm build before bower install. Unfortunately, npm build will have created a directory in the vendor folder, preventing bower from installing bootstrap. To back out of this situation, completely remove the bootstrap directory from the vendor folder and re-run bower.

# clean up the corrupted bootstrap directory
rm -rf client/vendor/bootstrap

# install bootstrap
./node_modules/.bin/bower install

# build
npm run build

The build should now be clean.