[英]In Angular 8 Server Side Rendering or Build Production is not Working when ivy is enabled
[英]Can't compile the Angular application with Ivy enabled
我從遠程克隆了我的 angular 應用程序並安裝了依賴項。 然后我嘗試使用 ng serve 命令在本地構建一個應用程序,該命令向我拋出了錯誤圖像中附加的這個錯誤。
我可以通過在我的 tsconfig 文件中添加以下代碼來繞過它。 但我仍然找不到背后的原因。 請讓我知道出了什么問題,並提前感謝。
"angularCompilerOptions":
{
"enableIvy": false
}
作為參考,我添加了我的 package.json 文件
{
"name": "",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~9.0.6",
"@angular/cdk": "^8.2.3",
"@angular/common": "~9.0.6",
"@angular/compiler": "~9.0.6",
"@angular/core": "~9.0.6",
"@angular/flex-layout": "^10.0.0-beta.32",
"@angular/forms": "~9.0.6",
"@angular/material": "^7.3.2",
"@angular/platform-browser": "~9.0.6",
"@angular/platform-browser-dynamic": "~9.0.6",
"@angular/router": "~9.0.6",
"aws-amplify": "^3.0.16",
"aws-amplify-angular": "^5.0.16",
"mat-progress-buttons": "^9.1.1",
"rxjs": "~6.5.4",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.900.6",
"@angular/cli": "~9.0.6",
"@angular/compiler-cli": "~9.0.6",
"@angular/language-service": "~9.0.6",
"@types/node": "^12.11.1",
"@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "^5.1.2",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.1.0",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"protractor": "~5.4.3",
"ts-node": "~8.3.0",
"tslint": "~5.18.0",
"typescript": "~3.7.5"
}
}
請跟進此問題並檢查,因為這是 amplify-js Github Repo 中當前開放的票證。 這似乎是導致該錯誤的原因。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.