angular - 在 Opera mini 中用于 Angular 10 的填充物是什么?
问题描述
是否要添加任何多边形填充以使 angular 10 在 Opera mini 中工作?
解决方案
经过几个小时的调查,我找到了解决方案。我们可以在 tsconfig.base.json 中将 target 修改为 es5,因为 es6 在 Opera mini 中不起作用。
tsconfig.base.json
/* 要了解有关此文件的更多信息,请参阅:https ://angular.io/config/tsconfig 。*/
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"module": "es2020",
"lib": [
"es2018",
"dom"
]
}
}
修改一个
/* 要了解有关此文件的更多信息,请参阅:https ://angular.io/config/tsconfig 。*/
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es5",
"module": "es2020",
"lib": [
"es2018",
"dom"
]
}
}
供参考,请通过以下链接
https://angular.io/guide/typescript-configuration https://angular.io/cli/build
推荐阅读
- javascript - mat stepper bar 不在 npm 注册表中
- python - 如何启动 pdb 并从 REPL 进入函数?
- android - 当我在 Playstore 中搜索时,Google Play 控制台不显示应用统计信息也不显示
- php - Symfony3.4:预期的 X 参数。找到 X
- python - Mac 上的 Python 模块
- javascript - 如何从列表js中删除特定项目?
- azure - 使用带有 MSAL.js 的 Javascript 客户端应用程序时,如何在访问令牌中获取应用程序角色声明 (Roles) 以访问受保护的 API
- java - 逻辑错误,Java中字符串的二进制搜索
- android - Glide 生成大小为 0 的 ImageView
- javascript - 使用正则表达式从字符串末尾重复字符集