profile
viewpoint

Ask questionsCustom decorators not working using AoT

Bug Report

Affected Package

The issue is caused by package @angular/cli

Is this a regression?

no

Description

Custom component decorator ignored on AoT.

Minimal Reproduction

https://stackblitz.com/edit/angular-ivy-mupixg?file=src/app/app.component.ts

Exception or Error

Expected to have 1 message on reproduction, receives 0 on build prod with aot true.

Your Environment

Angular Version: <pre><code> ngular CLI: 11.2.12 Node: 15.5.0 OS: win32 x64

Angular: 11.2.13 ... animations, common, compiler, compiler-cli, core, elements ... forms, language-service, platform-browser ... platform-browser-dynamic, platform-server, router Ivy Workspace: Yes

Package Version

@angular-devkit/architect 0.1102.12 @angular-devkit/build-angular 0.1102.12 @angular-devkit/build-webpack 0.1102.12 @angular-devkit/core 11.2.12 @angular-devkit/schematics 11.2.12 @angular/cdk 11.2.12 @angular/cli 11.2.12 @angular/flex-layout 11.0.0-beta.33 @angular/material 11.2.12 @angular/material-moment-adapter 11.2.12 @schematics/angular 11.2.12 @schematics/update 0.1102.12 ng-packagr 11.2.4 rxjs 6.6.7 typescript 4.1.5 </code></pre>

angular/angular-cli

Answer questions alan-agius4

@zehavibarak, https://github.com/zehavibarak/angular-decorator-app url doesn't exist.

useful!
source:https://uonfu.com/
answerer
Alan Agius alan-agius4 Malta Angular Team, Loves TypeScript, Build Tools, Food, Beer & Coffee 🇲🇹
Github User Rank List