javascriptecmascript-6appiumwebdriver-io

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.


Solution

  • 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.