-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typescript-stryker: Compilation fails, but tsc through npm does not #394
Comments
In trace mode, I do not see message that
|
@unlight thanks very much for testing out our new TypeScript support. Your assumption is correct in that you should see a [2017-09-25 22:48:40.943] [DEBUG] TranspilingLanguageService - Resolving lib file lib.es5.d.ts to C:\z\github\stryker-mutator\stryker\node_modules\typescript\lib\lib.es5.d.ts
[2017-09-25 22:48:40.943] [DEBUG] TranspilingLanguageService - Pulling file into memory: lib.es5.d.ts
[2017-09-25 22:48:40.962] [DEBUG] TranspilingLanguageService - Resolving lib file lib.es2015.promise.d.ts to C:\z\github\stryker-mutator\stryker\node_modules\typescript\lib\lib.es2015.promise.d.ts
[2017-09-25 22:48:40.963] [DEBUG] TranspilingLanguageService - Pulling file into memory: lib.es2015.promise.d.ts Do you see any lib files at all? Could you run in debug once more and look at the top for Finally: what versions are you using for typescript and stryker? |
Versions: I see only this typescript related definition files:
No
This pushed me to an idea, and finally I was able to solve it by creating empty ts file with content:
But initial run still fails for me, but for another reason. |
@unlight ok, so the finger clearly points to Stryker not loading I did come across an other bug #396 , but other than that the lib files seems to be loaded fine. Could you try out this small sample and try to reproduce the problem there? |
I've just tried and issue is not reproducible there, esnext definition is loading ok. |
Figure out the problem. |
@unlight ok, cool you found the problem. Just to be clear, you had Are you now able to run stryker on typescript code? Or is there some other issue your running into? |
I had several references to 'lib.es2015' in my code. |
tsconfig
part of stryker.conf
When I run
tsc
Everything compiled ok, without errors.
When
stryker run
it produce a tons of errors:In
tsconfig
lib dom, esnext is specified, but looks like stryker ignores it.The text was updated successfully, but these errors were encountered: