matthew1232 / discord-webhook-node

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

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

Open philmetzger opened 1 year ago

philmetzger commented 1 year 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 1 year ago

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

polvallverdu commented 9 months ago

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

cibucristi commented 7 months ago

Still same issue here, using just Nodejs.