0

I´m trying to get a simple TypeScript file working in PHPStorm, but sadly there seem to be some misconfiguration by default as the class keyword is not recognized properly

This is my TypeScript file:

class Test{

}

And this is the error I´m facing:

enter image description here

And this is my FieWatcher configuration of TypeScript

enter image description here

How can I get TypeScript working?

1 Answer 1

3

The Program options should not be node.exe (that would mean you are trying to typescript code as javascript). It needs to be tsc or node tsc(that means you want to run tsc to compile the file to javascript).

PS: this video might be helpful : https://www.youtube.com/watch?v=RWXGMug_Rmo&hd=1

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

Comments

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.