Webpack - Module not found: Error: Can't resolve 'bootstrap' in bootstrap3-dialog

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Webpack - Module not found: Error: Can't resolve 'bootstrap' in bootstrap3-dialog



We've been migrating our Web app to NPM recently, and have come across an issue while using webpack.


webpack



We've tried installing bootstrap@3.2.0 (what we were using) and tried installing the latest bootstrap-sass but have had no wins.


bootstrap@3.2.0


bootstrap-sass



Error Thrown:


ERROR in ./node_modules/bootstrap3-dialog/dist/js/bootstrap-dialog.js
Module not found: Error: Can't resolve 'bootstrap' in '/Users/michael/Development/work/webapp/node_modules/bootstrap3-dialog/dist/js'
@ ./node_modules/bootstrap3-dialog/dist/js/bootstrap-dialog.js 20:52-72 24:8-26:10
@ ./index.js
@ multi bootstrap-sass ./index.js



Any issues you see in our files?


// index.js (Yes this is the whole file right now)
require('bootstrap3-dialog'); <== This is where the error is thrown.



.


// webpack.config.js
module.exports = {
entry: [
'bootstrap-sass', // <== Bootstrap sass is included here.
'./index.js'
],
output:
filename: 'bundle.js',
path: path.resolve(__dirname, 'code')
,
...



Our .bootstraprc file is also just the default one listed in thebootstrap-sass` repository.


.bootstraprc file is also just the default one listed in the



We also made sure that indeed bootstrap-sass, bootstrap-loader and all of the other loaders have been installed via NPM/Yarn. We also haven't found any issues in the respective GitHub repositories that relate to our issue.


bootstrap-sass


bootstrap-loader



Thanks in advance.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard