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.

unmet dependency angular/cdk

See original GitHub issue

Bug, feature request, or proposal:

BUG

What is the expected behavior?

ng serve should work

What is the current behavior?

compilation breaks:

ERROR in /Applications/MAMP/htdocs/memberhive2/web/node_modules/@angular/material/typings/core/core.d.ts (1,61): Cannot find module '@angular/cdk'.

ERROR in ./~/@angular/material/@angular/material.es5.js
Module not found: Error: Can't resolve '@angular/cdk' in '/Applications/MAMP/htdocs/memberhive2/web/node_modules/@angular/material/@angular'
 @ ./~/@angular/material/@angular/material.es5.js 19:0-75
 @ ./src/app/app-material.module.ts
 @ ./src/app/app.module.ts
 @ ./src/main.ts
 @ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
webpack: Failed to compile.

During yarn upgrade you get the following warning: warning "@angular/material@2.0.0-beta.7-51bf26e" has unmet peer dependency "@angular/cdk@0.0.0-PLACEHOLDER".

@DevVersion it may have something to do with 17cc4a198f336e8ebefbb2710d8e80df2595db7e?

What are the steps to reproduce?

Just open the Plunker example … the console tells the story: https://goo.gl/DlHd6U

What is the use-case or motivation for changing an existing behavior?

continue with upgrades

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

TS 2.4.0 @angular/cli: 1.1.3 node: 8.0.0 os: darwin x64 @angular/animations: 4.2.4 @angular/common: 4.2.4 @angular/compiler: 4.2.4 @angular/core: 4.2.4 @angular/flex-layout: 2.0.0-rc.1 @angular/forms: 4.2.4 @angular/http: 4.2.4 @angular/material: 2.0.0-beta.7-51bf26e @angular/platform-browser: 4.2.4 @angular/platform-browser-dynamic: 4.2.4 @angular/router: 4.2.4 @angular/cli: 1.1.3 @angular/compiler-cli: 4.2.4 @angular/platform-server: 4.2.4

Is there anything else we should know?

I am pulling from the master branch, updating almost daily. Yesterday morning the update did not break the build.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:30 (6 by maintainers)

github_iconTop GitHub Comments

83reactions
w3chtmlcommented, Jul 7, 2017

npm install --save @angular/material @angular/cdk from documentation helped me too

41reactions
senthiljrubycommented, Jul 7, 2017

npm install --save @angular/cdk resolved it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular update from 8 to 13 peer dependency problem
Package "@ng-bootstrap/ng-bootstrap" has an incompatible peer dependency to "@angular/forms" (requires "^8.0. 0" (extended), would install "11. ...
Read more >
you must install peer dependencies yourself Code Example
“you must install peer dependencies yourself” Code Answer's ... npm command for peer dependencies · requires a peer of @angular/cdk@>=7.0.0 but none is ......
Read more >
[Solved]-Angular2: UNMET PEER DEPENDENCY-angular.js
Update @angular version to 2.0.0-rc.6 in package.json Refer package.json here. clean your node_modules folder and then run npm install. See if this helps....
Read more >
angular/core - npm
@angular/core. TypeScript icon, indicating that this package has built-in type declarations · Readme · Code Beta · 1 Dependency · 13,029 Dependents ...
Read more >
Error npm UNMET PEER DEPENDENCY warning - Edureka
Hello @kartik,. UNMET PEER DEPENDENCY error is thrown when the dependencies of one or more modules specified in the package.json file is not...
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