Also getting the same error. However I managed to figure out a solution.

First I had to npm install -g ts-node

I also had to npm install — save-dev ts-node into the working directory.

Then, in my run/debug config make sure the working directory was the same dir where node_modules had ts-node. After that all worked fine.

I’m using WebStorm but the principle is the same

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Andrew Burnett-Thompson
Andrew Burnett-Thompson

Written by Andrew Burnett-Thompson

I’m a software engineer who built a business from scratch and blogs about learning to code, startup lessons and growth mindset https://twitter.com/drandrewbt

No responses yet

Write a response