Angular 4 with AngularFire2 Function

I am trying to set up a new site in Angular 4. I want to use Firebase as a database.

I am using the installation guide found here: https://github.com/angular/angularfangular2/blob/master/docs/1-install-and-setup.md

However, when I execute ng serve --open, I get this error:

Error in error. calling function "OpaqueToken", function calls are not supported. Consider replacing a function or lambda with a reference to an exported function that resolves the FirebaseUserConfig character in C: / Source / node_modules / angularfire2 / tokens.d.ts, resolves the AngularFireModule.initializeApp character in C: /Source/node_modules/angularfire2/angularfire2.d.ts permission symbol AppModule in C: /Source/src/app/app.module.ts, permission symbol AppModule in C: /Source/src/app/app.module.ts

Since I rather start with Angular, I'm not sure how to resolve this error.

+4
source share
1 answer

: https://github.com/angular/angularfire2/blob/master/docs/version-4-upgrade.md

AngularFire2 4.0 AngularFire2, @NgModule, Angular 4.

+4

Source: https://habr.com/ru/post/1674521/


All Articles