首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不使用IE11的Firebase性能监视

问不使用IE11的Firebase性能监视
EN

Stack Overflow用户
提问于 2022-05-09 11:02:48
回答 1查看 103关注 0票数 0

我有一个角度应用程序,我使用角版本12.0.5。我正在使用AngularFire来连接防火墙。我试图同时启用防火墙性能监视。但该应用程序未能在IE11中加载。我已经在AngularFire文档中添加了建议的多填充

代码语言:javascript
复制
Object doesn't support property or method 'then'

这是我在控制台- IE11中遇到的错误。

代码语言:javascript
复制
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
import "classlist.js"; // Run `npm install --save classlist.js`.
import "core-js/es/array";
import "core-js/es/object";
/** IE10 and IE11 requires the following for the Reflect API. */
import "core-js/es/reflect";
import "core-js/es/string";
import "core-js/stable";
import "cross-fetch/polyfill";
import "first-input-delay";
import "globalthis";
import "isomorphic-fetch";
/**
 * Required to support Web Animations `@angular/platform-browser/animations`.
 * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
 **/
import "web-animations-js"; // Run `npm install --save web-animations-js`.
import "zone.js"; // Included with Angular CLI.
/***************************************************************************************************
 * Zone JS is required by Angular itself.
 */
import "./polyfills/proxy.polyfill.js";





(window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
(window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
(window as any).__zone_symbol__BLACK_LISTED_EVENTS = ["scroll", "mousemove"]; // disable patch specified eventNames

/*
 * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
 * with the following flag, it will bypass `zone.js` patch for IE/Edge
 */
(window as any).__Zone_enable_cross_context_check = true;

/*
 * To have compatibility across a wide range of environments for AngularFire and Firebase
 * IE 11, Chrome < 71, Safari < 12.1, iOS < 12.2, Node < 12
 */
(window as any).globalThis = window;

/***************************************************************************************************
 * APPLICATION IMPORTS
 */

/**
 * Date, currency, decimal and percent pipes.
 * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
 */
// import "intl"; // Run `npm install --save intl`.
/**
 * Need to import at least one locale-data with intl.
 */
// import "intl/locale-data/jsonp/en";


if (!Element.prototype.closest) {
  Element.prototype.closest = function (s) {
    let el = this;

    do {
      if (Element.prototype.matches.call(el, s)) { return el; }
      el = el.parentElement || el.parentNode;
    } while (el !== null && el.nodeType === 1);
    return null;
  };

}

/**
 * IE11 "crypto" is undefined error fix
 * Reference: https://github.com/auth0/auth0-spa-js/issues/113#issuecomment-520033811
 */
if (!window.crypto && (<any>window).msCrypto) {
  (<any>window).crypto = (<any>window).msCrypto;
}

这是我现在的多填充js。这里有我遗漏的东西吗?

EN

回答 1

Stack Overflow用户

发布于 2022-05-09 13:43:07

从9.8版的JavaScript SDK (上周发布)起,Firebase不再支持IE11

您可能需要检查您使用的JavaScript SDK的哪个版本。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72170921

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档