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

Angularfire2 initialization error ... #1691

Closed
macliems opened this issue May 15, 2018 · 5 comments
Closed

Angularfire2 initialization error ... #1691

macliems opened this issue May 15, 2018 · 5 comments

Comments

@macliems
Copy link

When trying to initialize angularfire2 in NgModule with:

AngularFireModule.initializeApp(...)

build:prod fails with error:

Function calls are not supported in decorators but 'AngularFireModule' was called ...

How to solve this problem?

@nnixaa
Copy link
Collaborator

nnixaa commented May 15, 2018

Hi @macliems, not sure this question for ngx-admin, rather for angular fire repository. For instance this issue could be a help angular/angularfire#728.

@nnixaa nnixaa closed this as completed May 15, 2018
@macliems
Copy link
Author

Hi nnixaa,

Well, I'm working on an other angular project, using angularfire2, and there the initialization with

AngularFireModule.initializeApp(...)

in app.module works just fine. Both projects use angular 6. Therefore, there must be something specific to ngx-admin that causes the compile error, wouldn't you agree?

@nnixaa
Copy link
Collaborator

nnixaa commented May 15, 2018

@macliems yes, that could be, though ngx-admin setup is pretty simple. Could you share a reproducible example on stackblitz so that we can check?

@macliems
Copy link
Author

Hi nnixaa,

You were right after all: it is an angularfire2 issue with ng6: (angular/angularfire#1635)

@nnixaa
Copy link
Collaborator

nnixaa commented May 15, 2018

Closing this one then. Hope they resolve it soon!

@nnixaa nnixaa closed this as completed May 15, 2018
@nnixaa nnixaa removed the needs info label Jun 15, 2018
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