-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpack errors are not logged #227
Comments
That's not an error, that is a malformed configuration. Everything you need to resolve the issues with your configuration are in the stack you pasted in.
|
@d3viant0ne yes, i know. But, that is not point of this report. Could you reread this? karma-webpack currently keeps this information hidden from user and reports only |
@patope - Sorry, I misread the first part. I'll have this fixed and out to npm shortly. |
Do you have an ETA on the fix? |
@marcusellis05 - It's next on my list after css-loader to go out. Couple of hours to npm |
I am getting this error only when running
My entry is not empty as this error states
webpack entry: module.exports = {
resolve: {
extensions: ['.js', '.ts']
},
devtool:'source-map',
entry: {
background: './src/background',
content: './src/content',
'url-listener': './src/url-listener',
frame: './src/frame',
options: './src/options',
popup: './src/popup'
},
/*eslint-disable no-var*/
var webpackConfig = require('./webpack.config.js');
webpackConfig.entry = {};
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['mocha', 'chai'],
files: [
'test/unit/**/*.spec.ts'
],
exclude: [
],
preprocessors: {
'test/unit/**/*.ts': ['webpack']
},
reporters: ['progress'],
port: 9876,
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
browsers: ['Chrome'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,
// Concurrency level
// how many browser should be started simultaneous
concurrency: Infinity,
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true
}
});
}; |
let me know if I should open a new thread |
I'm submitting a feature request
Webpack version:
2.x
Webpack Karma version:
2.0.x
Karma version:
1.x
Please tell us about your environment:
OSX 10.x
Current behavior:
karma-webpack do not log webpack configuration issues. Simply reports
code here https://github.com/webpack-contrib/karma-webpack/blob/v2/src/karma-webpack.js#L65
Expected/desired behavior:
Instead karma-webpack should catch expcetion thrown by webpack and log message on exception.
Replacing above line with
Report is
Make easier to resolve webpack configuration issues.
The text was updated successfully, but these errors were encountered: