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

V4.0.3 not working in production build with fesm5 (Cannot read property 'kind' of undefined) #527

Open
yellooo opened this issue May 23, 2022 · 0 comments

Comments

@yellooo
Copy link

yellooo commented May 23, 2022

It works fine when i setting the buildOptimizer to false in the angular.json file.

But when the buildOptimizer it's set on true, i get this error:

ERROR in C:/Front/node_modules/ngx-virtual-scroller/fesm5/ngx-virtual-scroller.js Module build failed (from C:/Front/node_modules/@angular-devkit/build-angular/node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js): TypeError: Cannot read property 'kind' of undefined at isAngularDecoratorMetadataExpression (C:\Front\node_modules\@angular-devkit\build-angular\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:265:35)

I'm on Angular v7.1.1 and ngx-virtual-scroller v4.0.3

"devDependencies": {
"@angular-devkit/build-angular": "0.13.10",
"@angular-devkit/build-ng-packagr": "0.13.10",
"@angular/cli": "7.3.10"
}

Thanks for all

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