Recast is not a module in typescript

Hi,after npm i recast-detour , I get this error :cry:

I had that too, you can import it like this:

// @ts-ignore
import Recast from "recast-detour"

This will remove the error. Then you can instantiate it as usual:

let recast = new Recast();
2 Likes