Skip to content

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

@surgetom

Description

@surgetom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions