我的初始问题源于由于以下错误导致的角火升级: &#39;命名空间&#39; firebase&#39;没有出口会员&#39;承诺&#39; <#39;
显然firebase.promise已从最新版本的Angular fire中删除,他们完全忘记了这会破坏应用程序的事实。所以我升级到最新版本,现在更多问题。
[21:51:43] typescript: node_modules/@angular/common/src/location/location.d.ts, line: 1
Module '"/Users/laroca/Documents/Mundo/node_modules/rxjs/Rx"' has no exported member 'SubscriptionLike'.
L1: import { SubscriptionLike } from 'rxjs';
L2: import { LocationStrategy } from './location_strategy';
[21:51:43] typescript:node_modules/@angular/compiler/src/output/output_ast.d.ts,line:576 在&#39; const&#39;枚举声明成员初始值设定项必须是常量表达式。
L575: text?: string;
L576: } | {
L577: tagName?: undefined;
[21:51:43] typescript:node_modules/@angular/compiler/src/output/output_ast.d.ts,line:577 在&#39; const&#39;枚举声明成员初始值设定项必须是常量表达式。
L576: } | {
L577: tagName?: undefined;
L578: text: string;
[21:51:43] typescript:node_modules/@angular/compiler/src/output/output_ast.d.ts,line:578 在&#39; const&#39;枚举声明成员初始值设定项必须是常量表达式。
L577: tagName?: undefined;
L578: text: string;
L579: };
[21:51:43] typescript:node_modules / angularfire2-offline / database / angularfire2-interfaces.d.ts,line:4 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L3: export interface FirebaseOperationCases {
L4: stringCase: () => firebase.Promise<void>;
L5: firebaseCase?: () => firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2-offline / database / angularfire2-interfaces.d.ts,line:5 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L4: stringCase: () => firebase.Promise<void>;
L5: firebaseCase?: () => firebase.Promise<void>;
L6: snapshotCase?: () => firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2-offline / database / angularfire2-interfaces.d.ts,line:6 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L5: firebaseCase?: () => firebase.Promise<void>;
L6: snapshotCase?: () => firebase.Promise<void>;
L7: unwrappedSnapshotCase?: () => firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2-offline / database / angularfire2-interfaces.d.ts,line:7 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L6: snapshotCase?: () => firebase.Promise<void>;
L7: unwrappedSnapshotCase?: () => firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2-offline / database / object / afo-object-observable.d.ts,line:53 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L53: remove(): firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2-offline / database / object / afo-object-observable.d.ts,line:63 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L63: set(value: any): firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2 / app / firebase.app.module.d.ts,line:5 Class&#39; FirebaseApp&#39;错误地实现了界面&#39; App&#39;。物业&#39; firestore&#39;在类型中缺失 &#39; FirebaseApp&#39 ;.
L4: export declare const FirebaseAppConfigToken: InjectionToken<FirebaseAppConfig>;
L5: export declare class FirebaseApp implements firebase.app.App {
L6: name: string;
[21:51:43] typescript:node_modules / angularfire2 / app / firebase.app.module.d.ts,line:12 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L11: storage: () => firebase.storage.Storage;
L12: delete: () => firebase.Promise<any>;
[21:51:43] typescript:node_modules / angularfire2 / database / firebase_list_observable.d.ts,line:14 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L13: push(val: any): firebase.database.ThenableReference;
L14: update(item: FirebaseOperation, value: Object): firebase.Promise<void>;
L15: remove(item?: FirebaseOperation): firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2 / database / firebase_list_observable.d.ts,line:15 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L14: update(item: FirebaseOperation, value: Object): firebase.Promise<void>;
L15: remove(item?: FirebaseOperation): firebase.Promise<void>;
L16: _checkOperationCases(item: FirebaseOperation, cases: FirebaseOperationCases): firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2 / database / firebase_list_observable.d.ts,line:16 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L15: remove(item?: FirebaseOperation): firebase.Promise<void>;
L16: _checkOperationCases(item: FirebaseOperation, cases: FirebaseOperationCases): firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2 / database / firebase_object_observable.d.ts,line:11 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L10: lift<T, R>(operator: Operator<T, R>): Observable<R>;
L11: set(value: any): firebase.Promise<void>;
L12: update(value: Object): firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2 / database / firebase_object_observable.d.ts,line:12 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L11: set(value: any): firebase.Promise<void>;
L12: update(value: Object): firebase.Promise<void>;
L13: remove(): firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2 / database / firebase_object_observable.d.ts,line:13 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L12: update(value: Object): firebase.Promise<void>;
L13: remove(): firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2 / interfaces.d.ts,line:12 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L11: export interface FirebaseOperationCases {
L12: stringCase: () => firebase.Promise<void>;
L13: firebaseCase?: () => firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2 / interfaces.d.ts,line:13 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L12: stringCase: () => firebase.Promise<void>;
L13: firebaseCase?: () => firebase.Promise<void>;
L14: snapshotCase?: () => firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2 / interfaces.d.ts,line:14 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L13: firebaseCase?: () => firebase.Promise<void>;
L14: snapshotCase?: () => firebase.Promise<void>;
L15: unwrappedSnapshotCase?: () => firebase.Promise<void>;
[21:51:43] typescript:node_modules / angularfire2 / interfaces.d.ts,line:15 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L14: snapshotCase?: () => firebase.Promise<void>;
L15: unwrappedSnapshotCase?: () => firebase.Promise<void>;
[21:51:43] typescript:node_modules / ionic-angular / components / app / app-root.d.ts,line:1 模块&#39;&#34; / Users / laroca / Documents / Mundo / node_modules / @ angular / core / core&#34;&#39;没有导出的成员 &#39; OpaqueToken&#39 ;.
L1: import { ComponentFactoryResolver, ElementRef, OnInit, OpaqueToken, Renderer, ViewContainerRef } from '@angu
L2: import { App } from './app';
[21:51:43] typescript:node_modules / ionic-angular / components / virtual-scroll / virtual-scroll.d.ts,line:1 模块&#39;&#34; / Users / laroca / Documents / Mundo / node_modules / @ angular / core / core&#34;&#39;没有导出的成员&#39; TrackByFn&#39;。
L1: ElementRef, IterableDiffer, IterableDiffers, NgZone, OnDestroy, Renderer, TrackByFn } from '@angular/core';
L2: import { Config } from '../../config/config';
[21:51:43] typescript:node_modules / ionic-angular / config / config.d.ts,line:1 模块&#39;&#34; / Users / laroca / Documents / Mundo / node_modules / @ angular / core / core&#34;&#39;没有导出的成员 &#39; OpaqueToken&#39 ;.
L1: import { OpaqueToken } from '@angular/core';
[21:51:43] typescript:node_modules / ionic-angular / navigation / url-serializer.d.ts,line:1 模块&#39;&#34; / Users / laroca / Documents / Mundo / node_modules / @ angular / core / core&#34;&#39;没有导出的成员 &#39; OpaqueToken&#39 ;.
L1: import { OpaqueToken } from '@angular/core';
L2: import { NavigationContainer } from './navigation-container';
[21:51:43] typescript:node_modules / ionic-angular / platform / platform-registry.d.ts,line:1 模块&#39;&#34; / Users / laroca / Documents / Mundo / node_modules / @ angular / core / core&#34;&#39;没有导出的成员 &#39; OpaqueToken&#39 ;.
L1: import { OpaqueToken } from '@angular/core';
L2: import { PlatformConfig } from './platform';
[21:51:43] typescript:node_modules / ionic-angular / util / module-loader.d.ts,line:1 模块&#39;&#34; / Users / laroca / Documents / Mundo / node_modules / @ angular / core / core&#34;&#39;没有导出的成员 &#39; OpaqueToken&#39 ;.
L1: ort { ComponentFactoryResolver, Injector, NgModuleFactory, NgZone, OpaqueToken, Type } from '@angular/core';
L2: import { Config } from '../config/config';
[21:51:43] typescript:src / pages / home / home.ts,line:154 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L154: logoutOfFacebook():firebase.Promise<void> {
L155: //const userId:string = firebase.auth().currentUser.uid;
[21:51:43] typescript:src / pages / settings / settings.ts,line:88 命名空间&firebase&#39;没有出口会员&#39;承诺&#39;。
L88: logoutOfFacebook():firebase.Promise<void> {
L89: //const userId:string = firebase.auth().currentUser.uid;
[21:51:43] typescript:src / providers / firebase-service / firebase-service.ts,line:25 物业&#39;数据库&#39;类型&#39; AngularFireDatabase&#39;中不存在。
L24: this.userId = user.uid
L25: this.setSettings = this.afDatabase.database.ref(`/users/${user.uid}/settings`);
L26: });
[21:51:43] typescript:src / providers / firebase-service / firebase-service.ts,line:36 无法找到命名空间&#39; firebase&#39;。
L36: firebase.Promise<any>{
L37: return this.afDatabase.object(`/users/${this.userId}/settings`).set({ location,
[21:51:43] typescript:src / providers / login-service / login-service.ts,line:27 物业&#39;数据库&#39;类型&#39; AngularFireDatabase&#39;中不存在。
L26: setUpUser(_credentials, _authData) {
L27: this.ref = this.afDatabase.database.ref('/users/' + _authData.uid)
L28: this.data = {
错误:无法转换程序 在新的BuildError(/Users/laroca/Documents/Mundo/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28) at /Users/laroca/Documents/Mundo/node_modules/@ionic/app-scripts/dist/transpile.js:159:20 在Promise() 在transpileWorker(/Users/laroca/Documents/Mundo/node_modules/@ionic/app-scripts/dist/transpile.js:107:12) at Object.transpile(/Users/laroca/Documents/Mundo/node_modules/@ionic/app-scripts/dist/transpile.js:64:12) at /Users/laroca/Documents/Mundo/node_modules/@ionic/app-scripts/dist/build.js:109:82 在