Edge-function failing to build

undici is a Node.js core module, so not sure why you find it weird. undici is how fetch works in Node.js.

As far as the solution is concerned, I linked the thread and it has the solution. You didn’t mention anything about it working or not for you: