-
Notifications
You must be signed in to change notification settings - Fork 122
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
Incompatible with default Angular 8 app #236
Comments
Isn't that what we have |
I'd need to try and make a reproducible example, but from my limited understanding the issue isn't that we can't use the Reflection API itself (that can be polyfilled as you've noted). The issue is that this library seems to use information about types from that metadata. And if At least that was my conclusion, because I've had an issue with a |
Just tested it with a fresh Angular CLI project (v8.2.0) and experienced the same issue with the Do you know what the "fundamental design limitation" of this option with ES2015 code is? The "reference error" that is mentioned in the issue you linked (angular/angular-cli#15077) was easy to handle for me. I experienced this with the example from the README: |
In the example from the Readme you can reorder things, but sometimes you can have structures which would result in a circular dependency, and I'm not sure it's possible to re-order at that point. Like having
Can this be fixed somehow? |
Sorry, but I have no idea how to fix this. Until someone does, projects that have this problem have to use |
I updated my pull request (#237) to add more detailed information about the compile targets. |
Hey, Angular 8 targets
es2015
and doesn't haveemitDecoratorMetadata
enabled. Which seems to make this library fundamentally incompatible with the newest version.(see also: angular/angular-cli#15077)
I may totally misunderstand all of this (new to this ecosystem) but as I understand it, this library uses the "Metadata Reflection API" in a way which depends on
emitDecoratorMetadata
to be true which means we can't targetes2015
right?So as I see the only options are to either use
es5
or stop usingangular2-jsonapi
? (correct me if I'm totally off the tracks here)The text was updated successfully, but these errors were encountered: