-
Notifications
You must be signed in to change notification settings - Fork 2
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
target: es6 doesnt work with @AsObservable #8
Comments
Hi Miguel, Well, that's not cool :) I didn't really experiment with a Edit: Also, I might be really interested on how you use Angular Elements together with |
I think i can provide you with a minimal case of the error! |
Hi @mgalante! Did you find a moment to come with that minimal case? :) Thank you! |
its something related to angular libraries, we will provide you a minimal example soon |
Hi @aleics, a member of my team, @marcosdavilam has prepared a minimal example of the error Sorry for the delay, and thanks for your incredible work |
Hi @mgalante and @marcosdavilam, thank you very much for the reproducible example. I'm able to reproduce it as well. Looking at the dist files, it seems that when compiling with When compiling with Now, comparing this with a demo project of mine, without any Angular Elements, but plain default Angular components. Using the same It seems that webpack would add the property I'm not really familiar on how Angular Elements get built, but maybe the decorators are not automatically included when using I've seen that your project uses Angular 7. Did you try out to update it to a newer version? I've seen that Angular had some issues with custom decorators in the past as well, when using Ivy & AOT Compiler. So, maybe Angular Elements + Custom decorators is not something well supported yet? Do you use in your projects other custom decorators, that do work using this setup? |
Dear Aleix,
We are using ngx-propserve on a Angular 7 (Angular Element) with target: es6 in tsconfig.json
When compiling with AOT, the decorator doesnt do anything. In es5 works correctly.
We worked arround doing a custom precompiling of the code and replacing the decorator with static code (add setters and an auxiliar variable).
Any ideas on why this could be happening?
The text was updated successfully, but these errors were encountered: