Open jakubchadim opened 2 months ago
One possible fix would be require("node-fetch")?.default ?? require("node-fetch")
Good catch @jakubchadim. I'm able to reproduce this; we've got it on our radar to bump some dependencies that should fix this issue for a future release of this SDK.
My nextJS API is failing that import require("node-fetch") is not a function. It needs to be imported as require("node-fetch").default in Fetcher.