bootstrap-loader: Module build failed
I followed the instructions but I keep getting errors:
ERROR in ./~/css-loader!./~/sass-loader!./~/bootstrap-loader/lib/bootstrap.styles.loader.js!./~/bootstrap-loader/no-op.js
Module build failed:
module.exports = {};
^
File to import not found or unreadable: ..♂ootstrap-sass
ssetsstylesheets♂ootstrap_variables
Parent style sheet: stdin
in C:\Users\Administrator\Dropbox\projects\spDash\node_modules\bootstrap-loader\no-op.js (line 1, column 1)
@ ./~/style-loader!./~/css-loader!./~/sass-loader!./~/bootstrap-loader/lib/bootstrap.styles.loader.js!./~/bootstrap-loader/no-op.js 4:14-121
My entry file looks like this:
require('expose?$!expose?jQuery!jquery');
require('angular');
require('angular-animate');
require('angular-sanitize');
require('angular-resource');
require('angular-ui-bootstrap');
require('angular-ui-router');
require('angular-ui-select/select');
require('datatables');
require('datatables-tabletools');
require('expose?moment!moment')
require('jquery-ui');
require('lodash');
require('expose?Promise!bluebird');
require('expose?toastr!toastr');
require('../../lib/jquery.SPServices-2014.02');
require('bootstrap-loader');
Webpack config:
var webpack = require('webpack')
module.exports = {
entry: {
'spdash': './app/js/loader.js'
},
output: {
filename: 'bundle.js',
},
// devtool: 'source-map',
plugins: [
new webpack.optimize.UglifyJsPlugin({
minimize: true,
compress: {
warnings: false
}
}),
new webpack.IgnorePlugin(/^\.\/locale$/, [/moment$/])
]
};
And I have all the loaders setup
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 27 (11 by maintainers)
nvm, got it. I used the bootstraprc out of one of the examples and it it made reference to a file path I don’t use. thanks for the consideration.
@simkessy @bmanturner Do you use custom
.bootstraprc? If you do, please, put or uncomment this line:Run build and post here output from console + contents of your
.bootstraprc.If you don’t have custom
.bootstraprc, please run your build like this:And post here output from console.
Thanks!