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

Build fainling for Angular after update from 1.0.78 to latest version #57

Closed
lyczos opened this issue Feb 3, 2020 · 2 comments
Closed

Comments

@lyczos
Copy link
Contributor

lyczos commented Feb 3, 2020

After updating @builder.io/angular package to latest version angular build is failing:

Screenshot 2020-02-03 at 16 41 07

ERROR in /Users/lyczos/workspace/knowde-frontend/node_modules/@builder.io/angular/dist/fesm5/builder.io-angular.js
Module build failed (from /Users/lyczos/workspace/knowde-frontend/node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
TypeError: Cannot read property 'kind' of undefined
    at isAngularDecoratorMetadataExpression (/Users/lyczos/workspace/knowde-frontend/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:265:35)
    at checkNodeForDecorators (/Users/lyczos/workspace/knowde-frontend/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:77:21)
    at visitNodes (/Users/lyczos/workspace/knowde-frontend/node_modules/typescript/lib/typescript.js:16514:30)
    at Object.forEachChild (/Users/lyczos/workspace/knowde-frontend/node_modules/typescript/lib/typescript.js:16740:24)
    at checkNodeForDecorators (/Users/lyczos/workspace/knowde-frontend/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:68:31)
    at visitNode (/Users/lyczos/workspace/knowde-frontend/node_modules/typescript/lib/typescript.js:16505:24)
    at Object.forEachChild (/Users/lyczos/workspace/knowde-frontend/node_modules/typescript/lib/typescript.js:16635:21)
    at checkNodeForDecorators (/Users/lyczos/workspace/knowde-frontend/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:68:31)
    at visitNode (/Users/lyczos/workspace/knowde-frontend/node_modules/typescript/lib/typescript.js:16505:24)
    at Object.forEachChild (/Users/lyczos/workspace/knowde-frontend/node_modules/typescript/lib/typescript.js:16692:24)
    at checkNodeForDecorators (/Users/lyczos/workspace/knowde-frontend/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:68:31)
    at visitNode (/Users/lyczos/workspace/knowde-frontend/node_modules/typescript/lib/typescript.js:16505:24)
    at Object.forEachChild (/Users/lyczos/workspace/knowde-frontend/node_modules/typescript/lib/typescript.js:16703:24)
    at checkNodeForDecorators (/Users/lyczos/workspace/knowde-frontend/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:68:31)
    at visitNode (/Users/lyczos/workspace/knowde-frontend/node_modules/typescript/lib/typescript.js:16505:24)
    at Object.forEachChild (/Users/lyczos/workspace/knowde-frontend/node_modules/typescript/lib/typescript.js:16599:21)

@ca136
Copy link
Contributor

ca136 commented Feb 3, 2020

@lyczos I think you may need to update your version of @angular-devkit
angular/angular-cli#15703.

Looks like the Angular 8 lib packager has some potential breaking changes for older versions of Angular.

I tried updating in the example app, and build is working ok: #58

@lyczos
Copy link
Contributor Author

lyczos commented Feb 4, 2020

@ca136 Thanks! It's working right now!

@lyczos lyczos closed this as completed Feb 4, 2020
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

2 participants