Skip to content

unmet dependency angular/cdk #5320

@axtho

Description

@axtho

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/[email protected]" has unmet peer dependency "@angular/[email protected]".

@devversion it may have something to do with 17cc4a1?

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions