我试图导入AngularFireModule和AngularFirestoreModule,但它说
Module '"@angular/fire/firestore"' has no exported member 'AngularFirestoreModule'.
Module '"@angular/fire"' has no exported member 'AngularFireModule'.
下面是我在我的app.module.ts中得到的信息:
import { NgModule } f
嗨,我正在升级我的angular应用程序,当我使用angular fire版本6.0.1时,我遇到了以下问题,我得到了与DATABASE_URL相关的错误 ERROR in src/app/app.module.ts:16:3 - error TS2305: Module '"D:/projects/ac node/firestore-phone-app/node_modules/@angular/fire/firestore/angular-fire-firestore"' has no exported member 'DATABASE_URL
它发生在我第一次编译我的项目的时候。
问题在于:
Module '".../node_modules/@angular/fire/firestore/angular-fire-firestore"' has no exported member 'FirestoreSettingsToken'
我的app.module.ts文件:
import { NgModule } from '@angular/core';
...
import { AppComponent } from './app.component
在实现FCM Background Web Notification时,我的服务中出现了以下错误
error TS2339: Property 'messaging' does not exist on type 'AngularFireMessaging'
messaging.service.ts
import { Injectable } from '@angular/core';
import { AngularFireMessaging } from '@angular/fire/messaging';
import {
我正在使用防火墙开发一个Agular。我已经做了我认为应该做的事,但我一直有这个错误。
ERROR in node_modules/@angular/fire/firebase.app.module.d.ts:2:10 - error TS2614: Module '"../../firebase"' has no exported member 'analytics'. Did you mean to use 'import analytics from "../../firebase"' instead?
2
我正在尝试将我的应用程序连接到一个消防数据库,但我在app.module.ts上收到了4条错误消息:
'"@angular/fire"' has no exported member 'AngularFireModule'.ts(2305),
'"@angular/fire/storage"' has no exported member 'AngularFireStorageModule'.ts(2305)
'"@angular/fire/database"' ha
我正在做一个应用程序,并使用Angular/ionic,我试图放置Facebook提供商,但我得到了这个错误: Error: Invalid provider for the NgModule 'AppModule' - only instances of Provider and Type are allowed, got: [..., ..., ..., ?[object Object]? 我的app.module: import { NgModule } from '@angular/core';
import { BrowserModule } fro
注意:,我想我能复制这个(参见)。控制台中的错误被打印为"INTERNAL ASSERTION FAILED: Expected a class definition“。这与我在当地得到的不一样,但在我看来,这是同一个问题。
无论如何,只要在app.component.ts中注释掉第15行,错误就会消失。
我正在尝试开始使用Firebase,但是当我安装和编译这个角项目时,我得到了以下错误:
Module not found: Error: Package path ./compat is not exported from package /home/sfalk/works
I'm using the official documentation here尝试将firebase添加到我的angular应用程序,但我一直收到以下类型错误: ype '{ ngModule: typeof AngularFireModule; providers: { provide: InjectionToken<string | FirebaseAppConfig>; useValue: string | FirebaseAppConfig; }[]; }' is not assignable to type 'any[] | Type