`ng add @angular/material@16` fails with Angular 17
Command
add
Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
As mentioned in Angular 17 release blog, Angular 17 supports Angular 16 Material. But when we run command ng add @angular/material@16, The package.json gets updated but end up getting an error on terminal "Can't find module "node_modules/@schematics/angular/private/component.js".
Same command works without error if Angular Material v17 is used.
Minimal Reproduction
Steps:
- Create an Angular app with latest Angular version (Angular 17.2.1)
- Use command
ng add @angular/material@16
Exception or Error
"Can't find module "node_modules/@schematics/angular/private/component.js"
Your Environment
OS: MacOS Sonoma v14.3.1
Editor: VS Code
Angular: v17.2.1
Anything else relevant?
No response
I'm getting the same error: Can't find module "node_modules@schematics\angular\private\component.js" when trying to install Ant: ng add ng-zorro-antd OS: win32 x64 Windows 11 Enterprise, version 23H2, OS build 22631.3155. Angular CLI: 17.2.1 Node: 20.11.1 Package Manager: npm 10.4.0
This should be fixed in @schematics/[email protected]. If you're still seeing an issue, please make sure your dependencies are updated post your ng version so we can verify if this is still a problem.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.