Cannot find @angular/cdk when running 'ng serve'
See original GitHub issueBug, 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:
- Cloning the project. Runnin
npm install
. Getting errors for deprecated packages and dependencies. - Applying a more recent package.json for angular/cli and running again
npm install
. Everything install. - Updating angular-cli.json to the new
environments
format. Runng 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
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top GitHub Comments
Did you install CDK as well?
See the getting started guide.
@theCrius Did you include a theme as well (see step 4)?