Comments (9)
This is fixed with the latest release
from bootstrap-webpack.
Hey @SlimMarten, did you able to figure out the problem or any solution yet? I am having the same issute.
from bootstrap-webpack.
I'm having the same problem.
from bootstrap-webpack.
+1
from bootstrap-webpack.
I'm new with webpack and am having a similar error:
ERROR in ./~/bootstrap-webpack/index.js
Module not found: Error: Can't resolve './bootstrap-styles' in '/path/node_modules/bootstrap-webpack'
@ ./~/bootstrap-webpack/index.js 1:0-66
@ ./js/entry.js
ERROR in ./~/bootstrap-webpack/index.js
Module not found: Error: Can't resolve './bootstrap-scripts' in '/path/node_modules/bootstrap-webpack'
@ ./~/bootstrap-webpack/index.js 2:0-52
@ ./js/entry.js
I'm not sure if it's the same problem or not (I'm using webpack2), so I'm adding it here instead of creating a new issue.
My webpack.config.js looks like this:
module.exports = {
entry: "./js/entry.js",
output: {path: "web/js", filename: "bundle.js", publicPath: "/js/"},
module: {
rules: [
{test: /\.(woff|woff2)$/, loader: "url-loader?limit=10000&mimetype=application/font-woff"},
{test: /\.ttf$/, loader: "file-loader"},
{test: /\.eot$/, loader: "file-loader"},
{test: /\.svg$/, loader: "file-loader"}
]
}
};
And the entry.js file is just
require("bootstrap-webpack");
from bootstrap-webpack.
@charlieman I'm having the same problem. you solve it
from bootstrap-webpack.
@zhangfu-git I had to add more packages to get it working. See my answer here: http://stackoverflow.com/a/42014474/154762
from bootstrap-webpack.
@zhangfu-git @charlieman @SlimMarten
For more clarification (in this post) you need to add
- css-loader
- style-loader
- less-loader
$ npm i -D css-loader style-loader less-loader
from bootstrap-webpack.
Same issue:
module.js:471
throw err;
^
Error: Cannot find module 'style-loader!css-loader!less-loader!./bootstrap-styles.loader!./bootstrap.config.js'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/lxcshared/vuejs/new.git/cli3/node_modules/bootstrap-webpack/index.js:1:63)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `cross-env NODE_ENV=development webpack-dev-server --open --hot`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in
My package.json file
...
"dependencies": {
"vue": "^2.3.3"
},
"devDependencies": {
"ajv": "^5.2.2",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.5.1",
"bootstrap": "^3.3.7",
"bootstrap-webpack": "0.0.6",
"cross-env": "^3.0.0",
"css-loader": "^0.25.0",
"exports-loader": "^0.6.4",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^0.9.0",
"imports-loader": "^0.7.1",
"less": "^2.7.2",
"less-loader": "^4.0.5",
"style-loader": "^0.18.2",
"url-loader": "^0.5.9",
"vue-loader": "^12.1.0",
"vue-template-compiler": "^2.3.3",
"webpack": "^3.1.0",
"webpack-dev-server": "^2.4.5"
}
...
from bootstrap-webpack.
Related Issues (20)
- support latest 3.x HOT 4
- I recomed integrating with and syncing bs version to: https://github.com/valor-software/ng2-bootstrap HOT 1
- cannot resolve path (or pattern) './src/**/*.spec.js'
- Unmet dependencies .. HOT 3
- Import order not allowing overrides HOT 2
- extract-text-webpack-plugin loader usage without plugin error HOT 1
- Use resolve loader
- Give example for using it in a global namespace HOT 1
- bootstrap.config.js doesn't work (in my config) HOT 3
- Can I move bootstrap to a "dll" bundle with bootstrap-webpack and DllPlugin?
- Can I move bootstrap to a "dll" bundle with bootstrap-webpack and DllPlugin?
- expose vs providePlugin?
- Include custom themes HOT 2
- Update to webpack 2 HOT 1
- webpack2 , upgrade extract-text-webpack-plugin error HOT 6
- Webpack 2 error: Can't resolve './bootstrap-styles' & './bootstrap-scripts' HOT 4
- For us newbies, where do I put require("bootstrap-webpack"); HOT 2
- Webpack 2 - Cannot find module \babel-loader\lib\index.js??ref--8-0
- webpack4.x Webapck4 does not support 'extract-text-webpack-plugin' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap-webpack.