昨天我将我的项目升级到了 Angular v9。运行时出现以下错误ng build。
正在为差异加载生成 ES5 包...发生未处理的异常:C:\workspace\project\ui\pages-pages-module-es2015.js:ForInStatement 预期节点的属性左侧为 ["VariableDeclaration"," LVal"] 而是得到了 null 有关更多详细信息,请参阅“C:\Users\sayoo\AppData\Local\Temp\ng-BaceZi\angular-errors.log”。
请在文件下方找到:package.json
{
"name": "ui",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"start:ar": "ng serve --configuration=ar-IQ",
"build": "ng build",
"build:ar": "ng build --configuration=ar-IQ",
"test": "ng test",
"test:coverage": "ng test --code-coverage",
"lint": "ng lint",
"e2e": "ng e2e",
"int-extract": "ng xi18n --output-path src/locale",
"postinstall": "ngcc"
},
"private": true,
"dependencies": {
"@agm/core": "^1.0.0-beta.7",
"@angular/animations": "^9.0.5",
"@angular/common": "~9.0.5",
"@angular/compiler": "~9.0.5",
"@angular/core": "~9.0.5",
"@angular/forms": "~9.0.5",
"@angular/localize": "~9.0.5",
"@angular/platform-browser": "~9.0.5", …Run Code Online (Sandbox Code Playgroud) 我在调试模式下运行项目时收到此错误。
无法启动 go 版本对于该版本的 delve 来说太旧(最低支持版本 1.15)
目前我的机器上安装了 go 1.13。如果我升级到 1.15 版本,调试器工作正常。但这不是我正在寻找的解决方案。我想让调试器与当前版本的 go 一起工作。如果您对此有任何解决方案,请告诉我。
提前感谢您的帮助。