Repository navigation
Commit 02a0678
fix(@schematics/angular): set explicit type for the
`ng generate module --route` generates a component and references it from the routing module
template by its default file and class name (`./foo`, `Foo`). The component inherited the
workspace `type` option, so in workspaces that set it (e.g. after updating to v20) the component
was generated as `foo.component.ts` and the routing module import failed to resolve.
Pass an empty `type`, as the library and app-shell schematics do.
Fixes #34449module --route component1 parent 125bbe0 commit 02a0678
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
186 | 190 | | |
187 | 191 | | |
188 | 192 | | |
| |||
0 commit comments