hxlniada / webpack-concat-plugin

a plugin to help webpack to concat file and inject to html
https://github.com/hxlniada/webpack-concat-plugin
97 stars 55 forks source link

Cannot read property 'length' of undefined. #16

Open phantomodm opened 6 years ago

phantomodm commented 6 years ago

Hello,

I'm trying to build a angular4 course work, however the build fails at 95% pointing to line 123 of your plugin. 95% emittingUnhandled rejection TypeError: Cannot read property 'length' of undefined at Object.size (C:\Users\Cliente\Downloads\themeforest-20161805-egret-angular-4-material-design-admin-templa te\Egret-Angular-Material-admin\Seed-project\node_modules\webpack-concat-plugin\index.js:128:39) at obj.assets.compilationAssets.map.asset (C:\Users\Cliente\Downloads\themeforest-20161805-egret-angular-4-m aterial-design-admin-template\Egret-Angular-Material-admin\Seed-project\node_modules\webpack\lib\Stats.js:258:38 )

Have you seen this? Any help would be greatly appreciated.

filipesilva commented 6 years ago

Heya, this looks like a problem in Angular CLI. Can you open this issue there please? I can have a look in that reprository if you can provide a reproduction. It might be that we're using some option incorrectly.