0

when I run tsc on the command line (version 1.4.1) on the following file I get an error: test.ts (1,13): Expected ';'

var x: Array<number>;
x = [2];

Any ideas what might be going on?

1 Answer 1

1

Check your path (where tsc). This is the error issued by an old pre-generics version of TypeScript (0.8 maybe?).

Sign up to request clarification or add additional context in comments.

1 Comment

Turns out, I had an old copy of typescript laying around. I did a search for tsc.exe and found one from 0.8.x and 1.0.x Once I removed these, everything was peachy

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.