Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: "ts-node/esm/transpile-only 'resolve'" did not call the next hook in its chain and did

1

2

Getting this error when run the test using npx wdio command.

How to resolve this issue. Error: "ts-node/esm/transpile-only 'resolve'" did not call the next hook in its chain and did not explicitly signal a short circuit. If this is intentional, include shortCircuit: true in the hook's return.

like image 996
Masud Rana Avatar asked Sep 15 '25 05:09

Masud Rana


1 Answers

The simplest way to get this running is to add typescript and ts-node to the project.

npm i -D typescript ts-node

Then npx wdio

I opted not to use the compiler in a WebdriverIO project but then started getting this error after a few weeks. I just added the libraries above rather than try to chase down the config i likely messed up, in order to eliminate the error message.

like image 87
Jonathan Gartland Avatar answered Sep 16 '25 19:09

Jonathan Gartland