我刚刚把我的Angular项目从版本8更新到了版本9。由于我必须支持IE11浏览器,目标是“es5”。
更新后,我在“为差异加载生成ES5捆绑包”时遇到以下错误
[1m[31mAn未处理的异常发生:C:\myproject\polyfills-es5.9b276c87455e9832d96d.js:编号(1:354893)[39m[22m[1m[31m[39m[22m]后的标识符
包裹json
{
"name": "myproject",
"version": "0.0.0",
"private": true,
"dependencies": {
"@angular/animations": "^9.1.11",
"@angular/cdk": "^9.2.4",
"@angular/common": "^9.1.11",
"@angular/compiler": "^9.1.11",
"@angular/core": "^9.1.11",
"@angular/forms": "^9.1.11",
"@angular/material": "^9.2.4",
"@angular/platform-browser": "^9.1.11",
"@angular/platform-browser-dynamic": "^9.1.11",
"@angular/router": "^9.1.11",
"@datorama/akita": "^5.1.1",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"angular-svg-round-progressbar": "^3.0.1",
"cronstrue": "^1.94.0",
"croppie": "^2.6.5",
"css-element-queries": "^1.2.3",
"highcharts": "^8.1.2",
"highcharts-angular": "^2.4.0",
"jquery": "^3.5.1",
"jquery-ui-dist": "^1.12.1",
"jquery-ui-touch-punch": "^0.2.3",
"lodash": "^4.17.15",
"ngx-infinite-scroll": "^9.0.0",
"rxjs": "^6.6.0",
"srcdoc-polyfill": "^1.0.0",
"stacktrace-js": "^2.0.2",
"tslib": "^2.0.0",
"web-animations-js": "^2.3.2",
"xlsx": "^0.16.3",
"zone.js": "~0.10.3"
},
"devDependencies": {
"@angular-builders/custom-webpack": "^9.2.0",
"@angular-devkit/build-angular": "^0.901.10",
"@angular/cli": "^9.1.10",
"@angular/compiler-cli": "^9.1.11",
"@angular/language-service": "^9.1.11",
"@asciidoctor/core": "^2.2.0",
"@asciidoctor/reveal.js": "^4.0.1",
"@cartant/tslint-config-rxjs": "^2.0.6",
"@datorama/akita-ngdevtools": "^5.0.3",
"@types/browser-sync": "^2.26.1",
"@types/ckeditor": "^0.0.46",
"@types/jquery": "^3.5.0",
"@types/jqueryui": "^1.12.13",
"@types/license-checker": "^25.0.0",
"@types/lodash": "^4.14.157",
"@types/node": "^14.0.14",
"@types/request": "^2.48.5",
"ajv": "^6.12.2",
"browser-sync": "^2.26.7",
"codelyzer": "^5.1.2",
"dependency-cruiser": "^9.8.0",
"license-checker": "^25.0.1",
"prettier": "^2.0.5",
"rxjs-tslint-rules": "^4.33.3",
"saml-idp": "^1.2.1",
"stylelint": "^13.6.1",
"stylelint-checkstyle-formatter": "^0.1.2",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-recommended": "^3.0.0",
"stylelint-config-recommended-scss": "^4.2.0",
"stylelint-config-standard": "^20.0.0",
"stylelint-scss": "^3.18.0",
"ts-node": "^8.10.2",
"tsc-silent": "^1.2.1",
"tslint": "^5.20.1",
"tslint-microsoft-contrib": "^6.2.0",
"tslint-sonarts": "^1.9.0",
"typescript": "~3.8.3",
"vega": "^5.13.0",
"vega-embed": "^6.9.0",
"vega-lite": "^4.13.1"
}
tsconfig。json
{
"compileOnSave": false,
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"alwaysStrict": true,
"baseUrl": "src",
"declaration": false,
"downlevelIteration": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"lib": [
"dom",
"es2020"
],
"module": "esnext",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"outDir": "./dist/out-tsc",
"sourceMap": true,
"strict": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
“npm过时”给出
npm过时的给
有什么线索可以说明解决办法吗?
同样的问题在我的项目,我解决了设置输出哈希为无(angular.json)。有人有关于这个错误的消息吗?我在github角项目上找不到任何问题,在网络上也找不到任何其他文章。
一些补充资料:
polfst-es5.
{preventExtensions:function(t){return c&&o(t)?c(i(t)):t}})}},[[4,0]]]),polyfills,es5.e52fb6e508fabacaf778.js;
//# sourceMappingURL=polyfills-es5.e52fb6e508fabacaf778.js.map
当且仅当哈希值以数字开头时,才会发生编译错误。
角度设置
sourceMap:false
。json似乎可以防止错误,在本例中不生成包含文件名的表达式。
昨天我将我的项目升级到Angular v9。我在运行时遇到以下错误。 正在生成用于差异加载的ES5束。。。发生未处理的异常:C:\workspace\project\ui\pages-pages-module-es2015。js:ForInstancent左侧的属性预期节点的类型为[“VariableDeclaration”,“LVal”],但实际为空。有关详细信息,请参阅“C:\Users\sa
我为我的应用程序中的所有请求创建了一个组件加载和一个拦截器,加载会出现在屏幕上,直到请求完成为止。然而,每当路由器出口的组件发生变化时,我就会得到一个错误。你能帮帮我吗? 我的错误: 错误错误:ExpressionChangedAfterithasBeenCheckedError:表达式在检查后已更改。前一个值:“未定义”。当前值:“true”。似乎视图是在父视图和子视图进行了脏检查之后创建的。它
我对Vertx中的标准顶点和工人顶点感到困惑。它们的用例是什么?
我有一个项目,起初我能够使用命令,但由于我已经实现了命令,当我遇到以下错误时,该命令不再起作用 错误:多个模块匹配。使用跳过导入选项跳过将组件导入最近的模块。多个模块匹配。使用跳过导入选项跳过将组件导入最近的模块。 我不太确定是不是导致了这一点,但这似乎是我所能做的,我需要修复它
问题内容: 我首先使用body标签中的ng-app =“ myApp”初始化我的应用,这对于在首页加载时加载的所有angularized-html都适用。 稍后,我有一些代码将angularized-html加载到DOM中。 在angular 1.08中,我可以在加载后只运行angular.bootstrap($ newLoadHTML,[“ myApp”]),它将可以正常工作。$ newLoad
本文向大家介绍成本差异和进度差异之间的差异,包括了成本差异和进度差异之间的差异的使用技巧和注意事项,需要的朋友参考一下 对于任何应用程序或专门用于任何项目,最关注的因素之一是在开发前和开发后阶段的预算管理和时间管理。因此,要评估任何项目的这两个主要因素,有很多方法,其中成本差异和进度差异是两个重要且主要的方法。 顾名思义,“成本差异”基于项目开发中花费的成本,而“进度差异”则基于相同开发中花费的时