diff --git a/packages/schematics/angular/app-shell/index.ts b/packages/schematics/angular/app-shell/index.ts index 20793404782b..5e7b726a8e89 100644 --- a/packages/schematics/angular/app-shell/index.ts +++ b/packages/schematics/angular/app-shell/index.ts @@ -210,6 +210,11 @@ const appShellSchematic: RuleFactory = createProjectSchematic( module: 'app.module.server.ts', project: options.project, standalone: isStandalone, + // The `AppShell` import added above expects the default file path and a named export, so + // the component must not inherit a `type`, `flat` or `exportDefault` from the workspace. + type: '', + flat: false, + exportDefault: false, }), ]); },