Open hkirk opened 7 years ago
This is new, possibly one of packages introduced breaking changes. I'll try to check what's going on tomorrow.
Hi, I encountered the same error as you and was able to fix it by editing the lib
field in ui/src/tsconfig.spec.json to:
"lib": [
"es2016",
"dom"
]
Since I updated to angular 4.2.4 and also updated the supporting packages I also got 2 other errors when running sbt test. These can be fixed in the following way.:
[00:27:47] I/launcher - Running 1 instances of WebDriver
[00:27:47] I/direct - Using ChromeDriver directly...
[00:27:47] E/direct - Error code: 135
[00:27:47] E/direct - Error message: Could not find update-config.json. Run 'webdriver-manager update' to download binaries.
[00:27:47] E/direct - Error: Could not find update-config.json. Run 'webdriver-manager update' to download binaries.
This error can be fixed by adding the following the scripts in the package.json:
"scripts": {
"webdriver-update": "webdriver-manager update"
}
and then running npm run webdriver-update
in the ui folder.
[01:51:40] I/launcher - Running 1 instances of WebDriver
[01:51:40] I/direct - Using ChromeDriver directly...
[01:51:42] E/launcher - Error: TSError: ⨯ Unable to compile TypeScript
e2e/app.e2e-spec.ts (12,45): Argument of type '"IT WORKS! - SASS + TS = <3"' is not assignable to parameter of type 'Expected<Promise<string>>'. (2345)
This error is an ongoing problem see: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/15215
A temporary fix is to add <any>
after expect
in ui/e2e/app.e2e-spec.ts:
expect<any>(page.getParagraphText()).toEqual('IT WORKS! - SASS + TS = <3');
However there probably are more elegant fixes for this.
I get the following error while running sbt test
Should note this is happening on both Windows and OSX. Any clues?