angular - 我应该关心“Zone.js 不支持 ES2017 中的本机异步/等待。”吗?
问题描述
从 Angular 9 升级到 10 后,我在运行 ng serve 时收到以下警告:
WARNING: Zone.js does not support native async/await in ES2017.
These blocks are not intercepted by zone.js and will not triggering change detection.
See: https://github.com/angular/zone.js/pull/1140 for more information.
(node:56581) ExperimentalWarning: The fs.promises API is experimental
有人知道这意味着什么,如果这是我应该关心的事情吗?
解决方案
我同意安德烈。它可能不会更新您的组件,尤其是当您从某个 API 获取数据时。要解决此问题,您可以将tsconfig.base.json
文件中的目标更改回es2015
.
推荐阅读
- angular - 如何防止 ng-bootstrap 模式在输入键上打开?
- django - Django外键插入数据
- db2 - Windows 10 - DB2 / ODBC / .NET 连接到 AS400 / V4R3M0
- php - 将 Laravel 与 database.net 集成 - 行中可见的 html 标签
- excel - 使用 EPPLUS 中的宏从下拉列表中选择多个值
- javascript - Vuejs:如何根据条件给出模态大小
- ruby-on-rails - 如何使用多个休息端点解决 Brakeman 重定向问题
- firebase - 使用firebase包未知输入参数Flutter查询firebase实时数据库
- xml - XSLT - 从 XML 中的字符串解析值并将 XML 转换为文本
- python - plotting millisecond timestamp against data does not align well in python