shakacode / bootstrap-loader

Load Bootstrap styles and scripts in your Webpack bundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error regarding couldn't find `mini-css-extract-plugin` module

xinghengwang opened this issue · comments

But 'mini-css-extract-pluggin' is installed, and inside the node_modeules directory.

So this error is very confusing:

ERROR in ./node_modules/bootstrap-loader/lib/bootstrap.loader.js!./node_modules/bootstrap-loader/no-op.js
Module build failed: Error: 
Could not find 'mini-css-extract-plugin' module.
Make sure it's installed in your 'node_modules/' directory.
Error: TypeError: Cannot destructure property `createHash` of 'undefined' or 'null'.

    at exports.default (~/node_modules/bootstrap-loader/lib/utils/buildExtractStylesLoader.js:13:11)
    at Object.module.exports.pitch (~/node_modules/bootstrap-loader/lib/bootstrap.loader.js:187:86)
 @ ./node_modules/bootstrap-loader/loader.js 2:17-61

Inside my node_modules/ folder:
screen shot 2018-06-28 at 10 23 32 am

Any ideas?