Next.js Discord

Discord Forum

There is an issue that only gets fixed when i disable minification

Answered
Samyar posted this in #help-forum
Open in Discord
So there is a bug in my nextjs app because of a library called grammyjs that only works when i disable minification in my NextJs app

it's on route handlers and the bug is related to fetch api i serve my apps in an ubuntu server

 error: TypeError: Expected signal to be an instanceof AbortSignal


is this issue related to Next or the library ?
Answered by Toyger
it's related to node-fetch, you can check workarounds here https://github.com/node-fetch/node-fetch/issues/784#issuecomment-1866152686 maybe something will help
View full answer

5 Replies

Toyger
it's related to node-fetch, you can check workarounds here https://github.com/node-fetch/node-fetch/issues/784#issuecomment-1866152686 maybe something will help
Answer
i can't find it
does it come with @swc/core