Closed leefsmp closed 7 years ago
This pull request fixes this issue and has already been merged into master
. Unfortunately, the NPM site still shows 0.0.5
as the latest version which was published about a year ago. Hopefully, a new version will be published soon and this issue will go away. In the meantime, if you go to the node_modules/bootstrap-webpack
in your project's root directory and replace the contents of index.js
file with the following code, the error should go away.
require("style-loader!css-loader!less-loader!./bootstrap-styles.loader!./bootstrap.config.js");
require("./bootstrap-scripts.loader!./bootstrap.config.js");
The root cause of the issue is that Webpack 2.x no longer allows us to omit the loader
suffix when using loaders. The current version (0.0.5
) of the bootstrap-webpack package uses bootstrap-scripts
and bootstrap-styles
instead of the full name of the loader files: bootstrap-scripts.loader
and bootstrap-styles.loader
in the index.js
file. That's why Webpack says it can't find those modules.
That was my guess, thanks for the feedback. I hope the package will be updated soon. In the meantime I moved to bootstrap-loader.
@leefsmp I've published 0.0.6 to npm, please let me know if there's any issues.
Awesome, all good now. Thanks!
Is this supposed to be compatible with Webpack 2? I am getting following error when building my app:
Thanks for any hint how this should be fixed ...