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

Plugin does not work when running AoT with Angular #65

Closed
VladimirAmiorkov opened this issue Nov 23, 2017 · 3 comments
Closed

Plugin does not work when running AoT with Angular #65

VladimirAmiorkov opened this issue Nov 23, 2017 · 3 comments

Comments

@VladimirAmiorkov
Copy link

This plugin looks to not be supporting Ahead of time compilation when inside an {N} + Angular project. It would be great if this gets resolved as it basically makes using this plugin in production not possible.

@davorpeic
Copy link

Hey @VladimirAmiorkov,
did you added registerElement('Fab', () => require('nativescript-floatingactionbutton').Fab); in main.aot.ts?
I'm running latest {N} with angular and it works fine even with webpack build. Check your versions, normally project upgrade fixes a lots of issues.

@VladimirAmiorkov
Copy link
Author

@davorpeic Thanks for pointing this out to me, I totally forgot that I was doing manual registering for this plugin.

@davorpeic
Copy link

@VladimirAmiorkov no worries, I just solved similar issue with this for webpack build so I learned :)

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

2 participants