Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not found: Error: Can't resolve 'bootstrap' #210

Open
surgetom opened this issue Dec 6, 2017 · 0 comments
Open

Module not found: Error: Can't resolve 'bootstrap' #210

surgetom opened this issue Dec 6, 2017 · 0 comments

Comments

@surgetom
Copy link

surgetom commented Dec 6, 2017

Hi Guys, for the life of me I cant seem to resolve this issue.

Set up:
Im using laravel-mix which uses Webpack to compile my JS files. So far in my project I haven't had any issues with including (require('PACK NAME HERE')) packages.

But when i require('bootstrap3-wysihtml5-npm'). I keep getting this error:

ERROR in ./node_modules/bootstrap3-wysihtml5-npm/dist/bootstrap3-wysihtml5.min.js Module not found: Error: Can't resolve 'bootstrap' in '......../node_modules/bootstrap3-wysihtml5-npm/dist'

At first I though it maybe to do with the order in which my packages were being require but that didn't seem to be the issue.

just as a reference, below is the order on the required packages file.

require('jquery') require('bootstrap-sass'); require('bootstrap3-wysihtml5-npm');

Also I have tried exchanging require('bootstrap-sass'); for
require('./bootstrap'); "required locally, outside node_modules
and
require('bootstrap') "version 3".

But none of them helped

Hope you can help
Thanks
Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant