umami-software / api-client

API client for Umami Analytics
MIT License
14 stars 11 forks source link

TypeError: fetch failed in Next 13 #7

Open DMaxence opened 11 months ago

DMaxence commented 11 months ago

So apparently since next@13.4.x they're using undici instead of node-fetch and that causes this error.

There're plenty of GH issues related and it seems that it's not solved in next 14.0.3. https://github.com/vercel/next.js/issues/44062 https://github.com/vercel/next.js/issues/54961

I don't know how relevant this issue can be but posting instead someone else’s struggling with client functions like createWebsite.

Capture d’écran 2023-12-07 à 16 43 09