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.

"@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:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jadeklercommented, Feb 19, 2020

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.

0reactions
angular-automatic-lock-bot[bot]commented, Mar 21, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

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