There is an issue that only gets fixed when i disable minification
Answered
Samyar posted this in #help-forum
SamyarOP
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
is this issue related to Next or the library ?
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 AbortSignalis 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
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/coreI found it 👇
https://webpack.js.org/plugins/terser-webpack-plugin/
https://webpack.js.org/plugins/terser-webpack-plugin/