matthew1232 / discord-webhook-node

Allows for easy webhook sending through discord's webhook API
MIT License
94 stars 38 forks source link

NextJS 14 causes issue: fetch is not a function #53

Open philmetzger opened 10 months ago

philmetzger commented 10 months ago

I upgraded nextjs to v14.0.1 and since then I cannot send out any notifications:

Error: fetch is not a function
    at Webhook.send (webpack-internal:///(rsc)/./node_modules/discord-webhook-node/src/classes/webhook.js:62:41)

Not sure what we can do here?

OmegaWulf commented 10 months ago

Having the same issue. No change in relevant code other than updating to nextjs 14

polvallverdu commented 7 months ago

Same issue here. Might be due to the override NextJS does to fetch.

cibucristi commented 5 months ago

Still same issue here, using just Nodejs.