question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug([@angular/material*]): Packages won't be catched by ngcc anymore | v9.1.1

See original GitHub issue

Reproduction

Steps to reproduce:

  1. npm i @angular/compiler @angular/compiler-cli @angular/core @angular/material @angular/cdk tslib typescript@3.7.5
  2. run ngcc --properties es2015 --first-only --create-ivy-entry-points

image

Expected Behavior

What behavior were you expecting to see?

@angular/material packages to be compiled by ngcc like before.

Actual Behavior

What behavior did you actually see?

@angular/* packages and @angular/cdk will be compiled by ngcc but @angular/material not

Environment

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 9.0.5
Node: 12.16.0
OS: win32 x64

Angular: 9.0.5
... cli, common, compiler, compiler-cli, core, elements, forms
... platform-browser
Ivy Workspace: Yes

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.900.5
@angular-devkit/build-ng-packagr   0.900.5
@angular-devkit/core               9.0.5
@angular-devkit/schematics         9.0.5
@angular/cdk                       9.1.1
@angular/material                  9.1.1
@schematics/angular                9.0.5
@schematics/update                 0.900.5
ng-packagr                         9.0.2
rxjs                               6.5.4
typescript                         3.7.5

cheers flash ⚡

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
flash-mecommented, Mar 5, 2020

This indeed solves the issue. Thanks for the hint! From my side this issue can be closed.

Cheers flash ⚡

1reaction
devversioncommented, Mar 5, 2020

Thanks for the issue. I just tried your command, and I was able to reproduce the described issue.

The problem here is that ngcc is unable to process all entry-points if they have missing dependencies. e.g. Angular Material depends on @angular/common.

When I added the required dependencies, ngcc was able to process all entry-points as expected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compiling angular project with "An unhandled exception ...
I used ng add @angular/material and npm install @angular/flex-layout@latest --save and I got this error. Till now I tried: reinstall flexLayot ...
Read more >
Getting started | Angular Material
Step 1: Install Angular Material, Angular CDK and Angular Animations. You can use either the npm or yarn command-line tool to install packages....
Read more >
How to Build News App using Angular 5 - Morioh
Deploy Angular 5 Application to Netlify; Build PWA with Angular 5 App; Build Dynamic themes for Angular Material; Using FlexLayout with Angular 5;...
Read more >
angular/material-moment-adapter - npm
Start using @angular/material-moment-adapter in your project by running ... TypeScript icon, indicating that this package has built-in type ...
Read more >
Amplify-js: After upgrade to Angular 9 get error "ERROR in ...
Tried uninstalling and installing the npm packages to makes sure its on latest but this didn't fix the issue. It seems to be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found