ng add @angular/material cannot find AppModule if imported through index.ts #12729
Closed
2 of 4 tasks
Labels
area: @schematics/angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
Bug Report or Feature Request (mark with an x)
Area
Versions
node --version
v10.10.0
npm --version
6.4.1
Repro steps
Create an Angular 7 application
If not present, create a index.ts in the App module folder with at least the following content:
In the main.ts, import the App module indirectly by using its parent folder:
Now use angular CLI to add material
The log given by the failure :
The text was updated successfully, but these errors were encountered: