"@angular/material/icon" has missing dependencies @angular/cdk/coercion
See original GitHub issue"@angular/material": "^9.0.0
Repro: https://github.com/jadekler/angular-spinner/tree/e3cb4b0bfa06ce35d3dc1711219cab68105202ac
(run ng serve
)
With the following app.module.ts
,
import { BrowserModule } from '@angular/platform-browser';
import {MatIconModule} from '@angular/material/icon';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
MatIconModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
I get,
$ ng serve
chunk {main} main.js, main.js.map (main) 2.01 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 686 bytes [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 9.72 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 340 kB [initial] [rendered]
Date: 2020-02-18T18:52:33.404Z - Hash: 2b4530d3884f9dda3f77 - Time: 2307ms
ERROR in The target entry-point "@angular/material/icon" has missing dependencies:
- @angular/cdk/coercion
Seems like @angular/material/icon
is not installing all its deendencies?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
ERROR in The target entry-point "@angular-material ...
ERROR in The target entry-point "@angular-material-extensions/faq" has missing dependencies: · angular · angular-material.
Read more >"@angular/material/icon" has missing dependencies ...
"@angular/material/icon" has missing dependencies @angular/cdk/coercion. 64 views. Skip to first unread message.
Read more >CDK - Angular Material
CDK. The Component Dev Kit (CDK) is a set of behavior primitives for building UI components. ... Utility functions for coercing @Input into...
Read more >the target entry-point "@angular/material/menu" - CodeProject
The "missing dependencies" list means you need to install the CDK libraries: npm install --save @angular/material @angular/cdk
Read more >The target entry-point "@angular/material/card" has missing ...
@angular/cdk/a11y; @angular/cdk/bidi; @angular/cdk; @angular/cdk/coercion; @angular/cdk/platform; @angular/cdk/keycode. These are the dependencies missing.
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
Update: after discussion, seems like it has to be this way or else users get two copies of cdk. Bummer. One nice-ish solution would be for npm to be intelligent enough to suggest missing peer dependencies when it fails.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.