beginners-typescript-tutorial icon indicating copy to clipboard operation
beginners-typescript-tutorial copied to clipboard

Checking types... error TS5023: Unknown compiler option '-'. Failed. Try again!

Open krajos opened this issue 2 years ago • 6 comments

Getting the following error after running any exercise (tests are passing) inside VS Code :

Checking types... error TS5023: Unknown compiler option '-'. Failed. Try again!

krajos avatar Aug 10 '23 12:08 krajos

Could you give me some more information about your setup? What platform/OS are you using? I'm not seeing this locally, meaning it's likely something going on with your system.

mattpocock avatar Aug 10 '23 13:08 mattpocock

  • VSCode Version: 1.81.0
  • OS: Windows 11

I tried to clone again and run, got a different error :

Checking types... error TS5042: Option 'project' cannot be mixed with source files on a command line. Failed. Try again!

krajos avatar Aug 10 '23 14:08 krajos

What version of Node do you have?

mattpocock avatar Aug 10 '23 16:08 mattpocock

Node version: 18.16.0

krajos avatar Aug 10 '23 17:08 krajos

And can you confirm exactly what command you're running?

mattpocock avatar Aug 10 '23 18:08 mattpocock

npm run exercise 01

krajos avatar Aug 11 '23 04:08 krajos