angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Error in terminal while installing Angular Material 16 in Angular 17 app

Open Gourav102 opened this issue 2 years ago • 2 comments

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

After fix for #27126 got deployed, the error in aforementioned bug was resolved, but started getting a new error: Could not find the project main file inside of the workspace config (src)

Minimal Reproduction

Steps:

  • Create an Angular 17 app with latest Angular Cli (v17.2.1)
  • Run ng add @angular/material@16 command.

Exception or Error

Could not find the project main file inside of the workspace config (src)

Your Environment

Angular: ^17.2.0
Angular CLI: ^17.2.1
Node: v20.11.1

Anything else relevant?

No response

Gourav102 avatar Feb 23 '24 04:02 Gourav102

This is because in version 16. The @angular/material schematics are not aware on how to handle the application builder.

Closing as this is not a regression and version 16 is LTS.

alan-agius4 avatar Feb 23 '24 12:02 alan-agius4

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.