ng-multiselect-dropdown icon indicating copy to clipboard operation
ng-multiselect-dropdown copied to clipboard

ng build --prod Error : 'kind' of undefined

Open sagarbehal08 opened this issue 3 years ago • 2 comments

On ng build --prod Error: 'kind' of undefined ng-multiselect-dropdown:^1.0.0-beta.13, need to use beta version: required ng-template for translate content in the dropdown Please help to solve this issue

sagarbehal08 avatar May 11 '21 05:05 sagarbehal08

Same issue on version 0.3.4. Build production failed!

ERROR in ./node_modules/ng-multiselect-dropdown/fesm5/ng-multiselect-dropdown.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
TypeError: Cannot read property 'kind' of undefined
    at isAngularDecoratorMetadataExpression (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:242:35)
    at checkNodeForDecorators (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:67:21)
    at visitNodes (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\typescript\lib\typescript.js:14809:30)
    at Object.forEachChild (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\typescript\lib\typescript.js:15033:24)
    at checkNodeForDecorators (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:58:31)
    at visitNode (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\typescript\lib\typescript.js:14800:24)
    at Object.forEachChild (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\typescript\lib\typescript.js:14928:21)
    at checkNodeForDecorators (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:58:31)
    at visitNode (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\typescript\lib\typescript.js:14800:24)
    at Object.forEachChild (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\typescript\lib\typescript.js:14985:24)
    at checkNodeForDecorators (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:58:31)
    at visitNode (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\typescript\lib\typescript.js:14800:24)
    at Object.forEachChild (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\typescript\lib\typescript.js:14996:24)
    at checkNodeForDecorators (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:58:31)
    at visitNode (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\typescript\lib\typescript.js:14800:24)
    at Object.forEachChild (C:\Users\han.mai\Desktop\work\my_project_name\node_modules\typescript\lib\typescript.js:14893:21)

brt-han-mai avatar Sep 16 '21 07:09 brt-han-mai

Same for 0.3.7

Running build on Node 12 and Angular 7 if that makes a difference

toastyghost avatar Dec 08 '21 19:12 toastyghost