codymikol / karma-webpack

Karma webpack Middleware
MIT License
830 stars 222 forks source link

TypeError: Cannot set property 'publicPath' of undefined #420

Closed limonte closed 5 years ago

limonte commented 5 years ago
  TypeError: Cannot set property 'publicPath' of undefined
    at Plugin (/node_modules/karma-webpack/dist/karma-webpack.js:221:39)

https://github.com/webpack-contrib/karma-webpack/blob/master/src/karma-webpack.js#L227

Looks like webpackMiddleware is undefined by default instead of {}

rensbaardman commented 5 years ago

Yep, can confirm this. Was introduced somewhere between v4.0.0-rc.6 and v4.0.1.

ryanclark commented 5 years ago

This was fixed in #418, but I'm waiting for the CLA check to pass before I can merge

ryanclark commented 5 years ago

Fixed in v4.0.2