bug([@angular/material*]): Packages won't be catched by ngcc anymore | v9.1.1
See original GitHub issueReproduction
Steps to reproduce:
npm i @angular/compiler @angular/compiler-cli @angular/core @angular/material @angular/cdk tslib typescript@3.7.5
- run
ngcc --properties es2015 --first-only --create-ivy-entry-points
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:
- Created 4 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This indeed solves the issue. Thanks for the hint! From my side this issue can be closed.
Cheers flash ⚡
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.