Skip to content

Commit ac2e701

Browse files
committed
feat: fail with clear error when browserTarget is used
1 parent 8213432 commit ac2e701

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/deploy/builder.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ import { BuildTarget } from '../interfaces';
1616
// https://github.com/angular/angularfire/blob/master/src/schematics/deploy/builder.ts
1717
export default createBuilder(
1818
async (options: Schema, context: BuilderContext): Promise<BuilderOutput> => {
19+
// browserTarget was removed in Angular 19, we require Angular 18+
20+
if ((options as Record<string, unknown>).browserTarget) {
21+
context.logger.error('❌ The "browserTarget" option is not supported.');
22+
context.logger.error(' Use "buildTarget" instead.');
23+
return { success: false };
24+
}
25+
1926
if (!context.target) {
2027
throw new Error('Cannot deploy the application without a target');
2128
}

0 commit comments

Comments
 (0)