Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using the --aot flag breaks custom annotations #2952

Closed
fshchudlo opened this issue Oct 30, 2016 · 4 comments
Closed

using the --aot flag breaks custom annotations #2952

fshchudlo opened this issue Oct 30, 2016 · 4 comments

Comments

@fshchudlo
Copy link

fshchudlo commented Oct 30, 2016

OS?

Windows 8

Versions.

angular-cli: 1.0.0-beta.19-3
node: 6.7.0
os: win32 x64

Repro steps.

I create the repo to demonstrate this issue
This is regular app which was created with ng new command.
I added definition of dumb log annotation inside app.component.ts file and decorate title property of the app component with this annotation.
If I run this app with ng serve it works well.
If I run this app with ng serve --aot message doesn't appears to the console.

Same case works well with angular2webpack2-starter

@Meligy
Copy link
Contributor

Meligy commented Oct 31, 2016

Looks like an Angular Compiler problem more than an Angular CLI problem.

I'd suspect you'll get the same with other repos like https://github.com/mgechev/angular-seed or https://github.com/qdouble/angular-webpack2-starter (which seems to have had more fun with AoT judging by https://github.com/qdouble/angular-webpack2-starter#aot--donts).

@fshchudlo
Copy link
Author

No, it's problem with Angular-CLI.
As I wrote in issue description, I tried to reproduce same issue with webpack2-starter and the error did not occur.

@clydin
Copy link
Member

clydin commented Nov 1, 2016

Dup: #2799

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants