Trying to create a Single Page Application with Angular/CLI 8. Everything was running smoothly locally until I tried to add Firebase authentication to the app. Upon compiling through Visual Studio Code, I encountered the following error message:
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; ~~~~~~~~~~~~~~~~
Installed the necessary packages by running:
npm install firebase firebaseui @angular/fire firebaseui-angular --save
Next, tried to compile and view locally using: ng serve
which resulted in an error.
Environment details:
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
Checked similar posts on stackoverflow but couldn't find any that matched my situation exactly. Attempted solutions suggested for related issues like angular-animations and flex-layout, which involved downgrading versions, but none of them worked. Even lowering the version of firebaseui from 4.5.0 to 3.6.0 did not resolve the problem.