"undici" is breaking the application on development and production stages
Answered
Florida White posted this in #help-forum
Florida WhiteOP
Hi everyone,
I'm facing this error on my application, using next 13 app directory alongside zustand, react-query, chakra-ui and calling the server-side apis using axios:
relaated issues:
https://github.com/vercel/next.js/discussions/55027
https://medium.com/@kaloyan_17221/fix-vercel-next-js-fetch-failed-from-undici-polyfill-8c66346c9c2f
I'm facing this error on my application, using next 13 app directory alongside zustand, react-query, chakra-ui and calling the server-side apis using axios:
relaated issues:
https://github.com/vercel/next.js/discussions/55027
https://medium.com/@kaloyan_17221/fix-vercel-next-js-fetch-failed-from-undici-polyfill-8c66346c9c2f
4 Replies
You should just use default fetch with nextjs (they have added caching and other features for it)
Florida WhiteOP
@risky I've entirely replaced axios with fetch and it's still occurring.
@Florida White Hi everyone,
I'm facing this error on my application, using next 13 app directory alongside zustand, react-query, chakra-ui and calling the server-side apis using axios:
relaated issues:
https://github.com/vercel/next.js/discussions/55027
https://medium.com/@kaloyan_17221/fix-vercel-next-js-fetch-failed-from-undici-polyfill-8c66346c9c2f
as far as i know this is a nextjs bug, downgrade to 13.4.12
Answer
Florida WhiteOP
@joulev saved my life! thanks a million.