indutny / webpack-common-shake

CommonJS Tree Shaker plugin for WebPack
918 stars 13 forks source link

Cannot read property 'resource' of undefined #3

Closed aewing closed 7 years ago

aewing commented 7 years ago

I've recently attempted to implement this package into my build chain using Webpack 3. Unfortunately, with this plugin added, my build fails at around 80%, citing the following error:

TypeError: Cannot read property 'resource' of undefined
    at ShakePlugin.mapModule (/path/to/node_modules/webpack-common-shake/lib/shake/plugin.js:71:33)

This is on MacOS with Node v6.11.0

indutny commented 7 years ago

Should be fixed now, I hope. Thanks!