1

Karma 因上述错误而崩溃。即使有一个全新的 Angular cli 项目。

{ "dependencies": { "@angular/animations": "^4.2.4", "@angular/common": "^4.2.4", "@angular/compiler": "^4.2.4", "@angular/core": "^4.2.4", "@angular/forms": "^4.2.4", "@angular/http": "^4.2.4", "@angular/platform-browser": "^4.2.4", "@angular/platform-browser-dynamic": "^4.2.4", "@angular/router": "^4.2.4", "@types/moment": "^2.13.0", "core-js": "^2.4.1", "karma-phantomjs-launcher": "^1.0.4", "lodash": "^4.17.10", "moment": "^2.11.2", "rxjs": "^5.4.2", "zone.js": "^0.8.14" }, "devDependencies": { "@angular/cli": "1.3.1", "@angular/compiler-cli": "^4.2.4", "@angular/language-service": "^4.2.4", "@types/jasmine": "~2.5.53", "@types/jasminewd2": "~2.0.2", "@types/node": "~6.0.60", "codelyzer": "~3.1.1", "jasmine-core": "~2.6.2", "jasmine-spec-reporter": "~4.1.0", "karma": "~1.7.0", "karma-chrome-launcher": "~2.1.1", "karma-cli": "~1.0.1", "karma-coverage-istanbul-reporter": "^1.2.1", "karma-jasmine": "~1.1.0", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "~5.1.2", "ts-node": "~3.2.0", "tslint": "~5.3.2", "typescript": "~2.3.3" } }

其他不使用 angular cli 的测试工作。我已经重新启动,npm i,几乎完成了一切。

小号

4

1 回答 1

0

看起来像是当前 Chrome 版本 (67.0.3396.62) 和我的业力版本之间的问题。在 Firefox 中一切正常。

于 2018-05-31T13:02:24.373 回答