question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tests don't compile with TypeScript 1.8.7

See original GitHub issue

I was having TS compilation errors when trying to run gulp test. I discovered it was because I was using a newer version of TypeScript.

image

My understanding is that typescript is supposed to be pinned to 1.8.0 as per PR #1294

However, when I ran gulp test it was still using 1.8.7. Based on some comments from @ericsciple in PR #1293 I believe it’s because tsc.exe is in my PATH. I’m assuming it got there because of how I installed it, which was following the instructions in Contribute.md, which instruct me to install it globally (or maybe it was VS that put it there, I’m not sure):

npm install typescript -g

If all of the above is correct, I’d suggest updating Contribute.md with instructions for how to properly setup my dev environment.

I also submitted PR #1366 which fixes toolrunner.ts so that it compiles in the latest version of TypeScript.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
bryanmacfarlanecommented, Mar 15, 2016

I’m fixing it right now

0reactions
dylan-smithcommented, Mar 15, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

tsc should not care and fail with ts files outside of rootDir #9858
In my tsconfig. json I set rootDir to src which does contain all my source code (including test). The fixtures files are there...
Read more >
Compile and build TypeScript code using NuGet
Learn how to add TypeScript support to your Visual Studio projects by using the NuGet package.
Read more >
TypeScript 1.8 for Visual Studio 2017 - Stack Overflow
I was able to solve this problem by installing the corresponding version nuget package of Microsoft.TypeScript.MsBuild.
Read more >
Documentation - TypeScript 3.9
Our team has been focusing on performance after observing extremely poor editing/compilation speed with packages like material-ui and styled-components.
Read more >
TypeScript Compiling with Visual Studio Code
To test that you have the TypeScript compiler tsc installed correctly and a working Hello World program, open a terminal and type tsc...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found