Skip to content

Cannot find @angular/cdk when running 'ng serve' #10997

@theCrius

Description

@theCrius

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Being able to start an app with Angular Material

What is the current behavior?

After an ng serve I get a huge wall of text of errors.

What are the steps to reproduce?

I cannot show you the source code as it's proprietary.
The code was written with an old version of Angular and Angular Material. Hopefully showing the package.json and the error will be enough.

The full process has been:

  1. Cloning the project. Runnin npm install. Getting errors for deprecated packages and dependencies.
  2. Applying a more recent package.json for angular/cli and running again npm install. Everything install.
  3. Updating angular-cli.json to the new environments format. Run ng serve -o. Get the error shown in the following gist.

https://gist.github.com/theCrius/bbee299f3e5aeec9e911279b7fb684b3

Both the package.json are also present in this gist. The original project was writte in June 2016 so I suppose the issue is related to changes in @angular/material2 as the issue comes from not finding @angular/cdk missing package.

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

Not applicable.

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

I can't make to the browser. The error is being showed in the console.

Is there anything else we should know?

Don't know if it can be useful, the current ng --version result is as follows:

Angular CLI: 1.6.6
Node: 8.9.4
OS: win32 x64
Angular: 5.2.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.6.6
@angular/material: 5.2.5
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.6
@schematics/angular: 0.1.17
typescript: 2.5.3
webpack: 3.10.0

Metadata

Metadata

Assignees

No one assigned

    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