Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am new to Angular. After reaching the clientapp folder of my project, I used a command called ng serve. I am getting an error. Your global Angular CLI version (12.2.9) is greater than your local version (11.2.18). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".

And here is the yellow-colored message: An unhandled exception occurred: The target entry-point "@angular/material/menu" has missing dependencies:

@angular/cdk/a11y
@angular/cdk/coercion
@angular/cdk/keycodes
@angular/cdk/portal
@angular/cdk/bidi
@angular/cdk/overlay
@angular/cdk/platform
@angular/cdk/scrolling (in red color).

I have used the npm install command and ng serve, but I am still getting this error. What should I do now?

What I have tried:

I tried to use npm install, but had no success.
Posted
Updated 8-Feb-22 10:27am
v2

1 solution

Either update you local server to 12.2.9 or higher, or follow the instructions in the error message which tell you how to disable the warning.

The "missing dependencies" list means you need to install the CDK libraries:
npm install --save @angular/material @angular/cdk

And restart your server.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900