首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在Firefox上升级到版本8之后,角应用程序就不能工作了

在Firefox上升级到版本8之后,角应用程序就不能工作了
EN

Stack Overflow用户
提问于 2019-07-01 11:01:59
回答 2查看 7K关注 0票数 5

我们已经更新了一个从7.2版到8版的角形应用程序。到目前为止,更新过程已经开始工作了,该应用程序可以在本地和prod模式下(在服务器上)使用,如Chrome,Firefox Developer Edition,Safari,Opera。

,但在普通的火狐浏览器和水狐中,应用程序不起作用:

  • 当浏览器显示状态时,该应用程序试图呈现“对本地主机执行tls握手”,直到某个时候“连接超时”出现为止。
  • 在prod模式下,在我部署了应用程序之后,至少会出现登录掩码,但是应用程序的性能非常差,几乎什么都不能工作。

我们创建了一个具有以下内容的浏览器列表文件:

代码语言:javascript
运行
复制
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# You can see what browsers were selected by your queries by running:
# npx browserslist

> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.

我们的tsconfig如下所示:

代码语言:javascript
运行
复制
{
  "compileOnSave": false,
  "compilerOptions": {
    "downlevelIteration": true,
    "importHelpers": true,
    "outDir": "./dist/out-tsc",
    "baseUrl": "src",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es2015",
    "typeRoots": [
      "Node_modules / @ types"
    ]
    "lib": [
      "ES2016"
      "Dom"
    ]
    "module": "esnext"
  }
}

和angular.json内部具有ssl配置的区域--所以:

代码语言:javascript
运行
复制
  "serve": {
    "builder": "@angular-devkit/build-angular:dev-server",
    "options": {
      "browserTarget": "farm-management-ui:build",
      "port": 8080,
      "ssl": true,
      "proxyConfig": "src/proxy.conf.js"
    },

我们已经成功地执行了以下命令:

ng更新@ angular / cli --从7迁移到8-只迁移

ng更新@ angular / core -从7迁移到8-只迁移

我有一种感觉,如果这个应用程序在Firefox中运行,就会创建一个没完没了的循环,因为我也不能打开其他网页,比如Stackoverflow等等。

为什么Firefox突然有这种行为,我们如何解决这个问题?

EN

回答 2

Stack Overflow用户

发布于 2019-11-08 11:40:54

应用程序在tsconfig.json中将属性targetes2015更改为旧值es5

票数 4
EN

Stack Overflow用户

发布于 2022-09-29 10:16:36

在终端中尝试这个命令

npm zone.js@latest

之后,我可以在Firefox上运行我的应用程序。

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

https://stackoverflow.com/questions/56834541

复制
相关文章

相似问题

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