Building SPA using Angular/CLI 8. Running locally until successfully. Adding firebase auth to app. Got following error message when compiling via VSC:
ERROR in node_modules/firebaseui-angular/lib/firebaseui-angular-library.component.d.ts:17:9 - error TS1086: An accessor cannot be declared in an ambient context.
17 get firebaseUiConfig(): NativeFirebaseUIAuthConfig; ~~~~~~~~~~~~~~~~
Ran: npm install firebase firebaseui @angular/fire firebaseui-angular --save
Ran: ng serve
to complile and view locally and received error.
Using:
typescript ~3.5.3
firebase ^7.13.2
firebaseui ^4.5.0
firebaseui-angular ^4.1.0
angular/cli ~8.3.25
angular/compiler-cli ~8.2.14
angular-devkit/build-angular ~0.803.25
Running on MacPro Catalina v-10.15.3
Have looked at other similar posts here on stackoverflow. Did not find any tied to same circumstances. Tried some of the solutions that helped others with similar problems but with other circumstances such as angular-animations and flex-layout. Both cases were lowering versions of each. Also have tried lowering version of firebaseui from 4.5.0 down to 3.6.0 to no avail.
changing
firebaseui-angular: ^4.1.0
to
"firebaseui-angular": "~4.0.1"
in package.json worked for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With