Skip to content

Commit 15f0372

Browse files
committed
fixup! fix(@schematics/angular): set explicit type for the module --route component
1 parent 61def7b commit 15f0372

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/schematics/angular/module

‎packages/schematics/angular/module/index.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ const moduleSchematic: RuleFactory<ModuleOptions> = createProjectSchematic(
184184
project: options.project,
185185
standalone: false,
186186
// The route templates reference the component by its default file and class name, so the
187-
// component must not inherit a `type` from the workspace.
187+
// component must not inherit a `type` or `exportDefault` from the workspace.
188188
type: '',
189+
exportDefault: false,
189190
};
190191

191192
return chain([

0 commit comments

Comments
 (0)