請問~升級後firebase export的問題~
版本:
angular 15.0.1
typescript 4.8.4
firebase 0.8.4
錯誤提示:Error: export 'default' (imported as 'firebase') was not found in 'firebase/app' (possible exports: FirebaseError, SDK_VERSION, _DEFAULT_ENTRY_NAME, _addComponent, _addOrOverwriteComponent, _apps, _clearComponents, _components, _getProvider, _registerComponent, _removeServiceInstance, deleteApp, getApp, getApps, initializeApp, onLog, registerVersion, setLogLevel)
上網查照大家的解決方法:路徑加“compat”(向下兼容)import firebase from "firebase/compat/app"
https://stackoverflow.com/questions/68929593/vue-2-export-default-imported-as-firebase-was-not-found-in-firebase-app
但還是沒有解決....
有人有遇過類似情況解決了嗎?
我的import
import { OverlayService } from '@shared/overlay/overlay.service';
import { ICoinInfo } from '@utility/interface/businessCenter.interface';
import { BehaviorSubject, interval, Subscription, forkJoin } from 'rxjs';
import { LoggerService } from '@shared/services/logger.service';
import { FeatureService } from '@utility/abstract/feature-service.abstract';
import { Injectable } from '@angular/core';
import { CoinInfo, CoiningAction as Action, ICoiningEvent } from '@business/shared/models/coining.model';
import { BusinessCenterService } from '@shared/services/business-center.service';
import { take, switchMap, map } from 'rxjs/operators';
import { UserService } from '@user/shared/services/user.service';
import firebase from 'firebase/compat/app';