Comments (8)
+1
from bower-webpack-plugin.
I have the same issue even if i try to only install the plugin and not to require any components. I'm wondering if this could be related to the fact that debug.js
is located in the ../debug
folder and not inside any dist
folder. How do we fix that?
from bower-webpack-plugin.
See final comment of debug-js/debug#242 for working fix
from bower-webpack-plugin.
UPDATE: I can confirm that if I manually create the dist
folder, the error disappears.
from bower-webpack-plugin.
Same problem.
from bower-webpack-plugin.
Are you sure webpack should be looking in 'node_modules'? Did you manually rename your bower directory to that?
from bower-webpack-plugin.
I have the same problem. I made manually the dist folder but it doesn't resolve the problem
from bower-webpack-plugin.
@jlsutherland there is not a nice solution if you want to install packages with npm/yarn but this packages actually just a Bower packages without any module system (like angular-bootstrap-toggle).
I solved the issue in the following quick and ugly way (add to Webpack config):
externals: [
(context, request, callback) => {
if (request == 'debug')
callback(null, 'function(namespace) { return namespace; }');
else callback();
}
]
It just replaces debug module with empty function. It will not work if you need working debug module.
from bower-webpack-plugin.
Related Issues (20)
- Resolving dependencies inside dependencies HOT 8
- Error when npm module contains a bower.json file HOT 5
- BowerWebpackPlugin preventing exposed vars from getting to the window HOT 2
- How to resolve a css file in bower_components HOT 3
- some bower_components can`t require HOT 5
- Resolve priority HOT 4
- Add 'overrides' support HOT 10
- Importing modules with the proper UMD definition messes up globals
- Can't get this working with angular2
- .bowerrc directory setting is not respected
- Example missing css HOT 2
- Ecludes does not seem to work HOT 1
- Multiple manafest files ie ".bower.json" & "bower.json"
- jQuery Plugins
- Following example gives me an import error for jQuery HOT 1
- How to resolve the issue when 'main' field is an array
- When the "main" field is an array.
- MIT License? HOT 1
- Support for Webpack 2 ? HOT 4
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 bower-webpack-plugin.