在实现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 {
Firebase Hosting Setup Complete, Error loading the Firebase SDK,check the console. 收到“加载Firebase SDK时出错,请检查控制台”。从Firebase成功部署后的消息。在另一篇文章中读到清除缓存可能会有所帮助。然而,这对我来说并不是一个解决方案。多个项目(包括空白项目)出现此错误。已尝试卸载并重新安装Firebase。这些都是angular项目,所以我也尝试了卸载angular和angular/fire,然后重新安装它们。我目前使用的是Linux mint Ubuntu。这是我的第一个angular和
我正在尝试将Firebase添加到我的项目中。我刚刚在Xcode项目中添加了下面的pods。
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/Database'
pod 'Firebase/Auth'
安装podfile后,我尝试将firebase导入到我的项目中。但是它给了我一个错误,Firebase.h没有找到.
当我从Run script only when installing中
我无法从cordova中删除任何插件。当我在android中安装cordova-firebase-plugin时,它崩溃了。
> cordova plugin remove cordova-plugin-firebase
Uninstalling cordova-plugin-firebase from android
Error during processing of action! Attempting to revert...
Uh oh!
ENOENT: no such file or directory, open '/home/abhishek/client_pro
我的iOS应用使用Firebase消息传递和Google Toolbox for Mac (GTM)。GTM以前是直接包含在项目中的文件(即,而不是cocoapods)。然而,当通过pods安装Firebase Messaging时,它也会安装带有pods的GTM,因为它是一个依赖项-因此我的项目中有两个GTM副本。
这是在Xcode中构建此项目时出现的错误:
147 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invo
我开发了一个库,然后在repo上发布,这样我就可以通过npm在其他项目中使用它。
除了当我启动我的项目时,我有以下错误:
ERROR in Cannot resolve type entity i3.FontAwesomeModule to symbol
我的库有以下依赖项:
import * as i0 from "@angular/core";
import * as i1 from "./myComponentInLib.component";
import * as i2 from "@angular/common";
import *
我刚刚将项目中的@progress/kendo-angular-l10n更新为Range6。当我运行ng-build时,它会抛出以下错误:
node_modules/@progress/kendo-angular-
l10n/dist/es2015/localization.service.d.ts(3,10):
error TS2305: Module '"C:/Samples/Project1/Web/node_modules/rxjs/Subject"'
has no exported member 'Subject'.
no
当我尝试运行Angular 7.2和Firebase的全新安装时,我似乎得到了这个错误:
ERROR in node_modules/@angular/fire/firebase.app.module.d.ts(17,22): error TS2420: Class 'FirebaseApp' incorrectly implements interface 'App'.
Property 'performance' is missing in type 'FirebaseApp' but required in type &
我最近开始了一个新项目,并使用AngularFire进行firebase托管。几天前,AngularFire团队完成了一项令人难以置信的工作,并推出了one liner,用于将Angular SSR应用程序部署到firebase托管/功能。 在我添加FirbaseAuthModule之前,一切都运行得很好,现在它给了我Error not able to load @firebase\app module。不确定是否有人在部署到firebase时遇到此错误。 我执行了AngualrFire文档- https://github.com/angular/angularfire/blob/maste
当我在我的项目中安装Firebase Crashlytics时,出现了如下错误:
Crashlytics found an invalid API key: @string/twitter_consumer_secret.
Check the Crashlytics plugin to make sure that the application has been added
successfully!
Contact support@fabric.io for assistance.
我该怎么办?提前谢谢。
我使用的依赖项本身依赖于。在Angular 11项目中,我可以执行同构-unfetch本身,而不会出现任何错误。当使用依赖项(通过npm安装)时,我收到以下消息:
index.js:209 TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
at zone-evergreen.js:1465
at Object.proto.<computed> [as default] (zone-evergreen.js:975)
at index.js:189
at step
我试图在我的角度项目中使用firebase.database.reference,但即使在搜索web之后,我也无法消除后续错误。
我得到了下面一行的错误“属性‘数据库’不存在”
let dbRef = firebase.database().ref('students/');
此外,我还得到了“无法找到名称'firebase‘”的错误,因此我添加了
import * as firebase from '@firebase/app';
这删除了“firebase”名称错误,但我不知道这是否是导入防火墙的最佳方法?
我用的是角5
import { Ang