Skip to content
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

TypeError: Cannot create property 'colors' on string 'errors-only' #185

Open
tommck opened this issue Apr 19, 2018 · 1 comment
Open

TypeError: Cannot create property 'colors' on string 'errors-only' #185

tommck opened this issue Apr 19, 2018 · 1 comment

Comments

@tommck
Copy link

tommck commented Apr 19, 2018

If I set stats: 'errors-only', I get this error:

TypeError: Cannot create property 'colors' on string 'errors-only'
    at [appFolder]\node_modules\webpack-stream\index.js:62:31

webpack itself is fine with it, so is karma-webpack. It's only webpack-stream that has a problem

@tommck
Copy link
Author

tommck commented Apr 19, 2018

Yeah, looks like the code right here is assuming it's not using shortcut strings

webpack-stream/index.js

Lines 58 to 64 in 505ad81

var statsOptions = (options && options.stats) || {};
Object.keys(defaultStatsOptions).forEach(function (key) {
if (typeof statsOptions[key] === 'undefined') {
statsOptions[key] = defaultStatsOptions[key];
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant