Error: Cannot find module './lib/bootstrap.loader!./no-op.js'
thebedivere opened this issue · 4 comments
I'm trying to get this set up in webpack, and I am stuck with errors.
If I try require('bootstrap-loader');
at the top of my webpack.config, I get Error: Cannot find module './lib/bootstrap.loader!./no-op.js'
If I try module.exports = { entry: [ 'bootstrap-loader, etc...
I get Module build failed: Error: Failed to find '../bootstrap/scss/_mixins'
Ok, I try setting the path to bootsrap. module.exports = { entry: [ 'bootstrap-loader?bootstrapPath=node_modules/bootstrap/', etc...
which gives me the error Module build failed: Error: Failed to find '../bootstrap/scss/_mixins'
I try setting the boostrap path using require require('bootstrap-loader?bootstrapPath=/node_modules/bootstrap/');
which gives the error Error: Cannot find module 'bootstrap-loader?bootstrapPath=/node_modules/bootstrap/'
I've been going around this in circles for a few hours. Any ideas of what I need to do, or is this a bug?
Same here, and lots of other posts with this issue -- any suggestions as to a resolution?
@thebedivere @JESii can you sync the repo and get the examples to work:
https://github.com/shakacode/bootstrap-loader/tree/master/examples
Most likely, there's some change in the versions of the libraries, webpack, etc.
My team would love to help, but we need to prioritize our "pro customers". For more information on that program, see http://www.shakacode.com/work/shakacode-coaching-plan.pdf.
+1 to this. Same error as OP. Furthermore, can't get the examples to work either in any way.
Traceback:
➜ basic git:(master) ✗ npm run bs3:default:dev
> bootstrap-loader-example@2.0.0-beta.8 bs3:default:dev /Users/imac/Desktop/code/bootstrap-loader/examples/basic
> npm run bs3:default:setup && npm start
> bootstrap-loader-example@2.0.0-beta.8 bs3:default:setup /Users/imac/Desktop/code/bootstrap-loader/examples/basic
> cp -f .bootstraprc-3-example .bootstraprc
> bootstrap-loader-example@2.0.0-beta.8 start /Users/imac/Desktop/code/bootstrap-loader/examples/basic
> nodemon --watch app/markup --ext html server.dev.js
[nodemon] 1.12.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: /Users/imac/Desktop/code/bootstrap-loader/examples/basic/app/markup/**/*
[nodemon] starting `node server.dev.js`
=> bootstrap-loader configuration: bootstrap-loader
=> 🔥 Webpack dev server is running on port 4000
webpack built 474151099f5430db5315 in 1251ms
Time: 1251ms
Asset Size Chunks Chunk Names
674f50d287a8c48dc19ba404d20fe713.eot 166 kB
912ec66d7572ff821749319396470bde.svg 444 kB
b06871f281fee6b241d60582ae9369b9.ttf 166 kB
af7ae505a9eed503f8b8e6982036873e.woff2 77.2 kB
fee66e712a8a08eef5805a46892932ad.woff 98 kB
app.js 1.3 MB 0 main
ERROR in /Users/imac/Desktop/code/bootstrap-loader/lib/bootstrap.loader.js!/Users/imac/Desktop/code/bootstrap-loader/no-op.js
Module build failed: Error: Could not resolve module 'bootstrap-sass' which must be installed when bootstrap version is configured to v3.
You must install 'bootstrap' for bootstrap v4 or 'bootstrap-sass' for bootstrap v3.
You can also specify the location manually by specifying 'bootstrapPath' in bootstrap-loader's query string.
See https://github.com/shakacode/bootstrap-loader/blob/master/README.md#usage.
at Object.module.exports.pitch (/Users/imac/Desktop/code/bootstrap-loader/lib/bootstrap.loader.js:147:11)
@ /Users/imac/Desktop/code/bootstrap-loader/loader.js 2:17-61
@ multi webpack-hot-middleware/client tether font-awesome-loader bootstrap-loader ./app/scripts/app
webpack: Failed to compile.
@raunofreiberg focus on this error:
ERROR in /Users/imac/Desktop/code/bootstrap-loader/lib/bootstrap.loader.js!/Users/imac/Desktop/code/bootstrap-loader/no-op.js
Module build failed: Error: Could not resolve module 'bootstrap-sass' which must be installed when bootstrap version is configured to v3.
You must install 'bootstrap' for bootstrap v4 or 'bootstrap-sass' for bootstrap v3.