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 JsonIdentityInfo prevent building with aot #22

Closed
badetitou opened this issue Jan 13, 2021 · 1 comment
Closed

Using JsonIdentityInfo prevent building with aot #22

badetitou opened this issue Jan 13, 2021 · 1 comment

Comments

@badetitou
Copy link

Description

Expected behavior:
When compiling a class with aot in prod there should be no error

Current behavior:
It cannot compile because we get a "Only initialized variables and constants can be referenced in decorators"

Steps to reproduce

  1. Create a Type
  2. Add to the type the JsonIdentifyInfo annotation
  3. Compiles with aot option at true
@badetitou
Copy link
Author

It looks like moving to Angular 9 fixes the bug
angular/angular#14323 (comment)
I tried it and it works in my simple example.

Sorry for the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant