It seems some of the packages used are no longer supported. I did a quick search and returned this useful thread vercel/next.js#66289.
(node:19007) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
FetchError: request to https://localhost:3000/ failed, reason:
at ClientRequest.<anonymous> (/opt/homebrew/lib/node_modules/graphqlviz/node_modules/node-fetch/lib/index.js:1501:11)
at ClientRequest.emit (node:events:520:28)
at TLSSocket.socketErrorListener (node:_http_client:502:9)
at TLSSocket.emit (node:events:520:28)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
It seems some of the packages used are no longer supported. I did a quick search and returned this useful thread vercel/next.js#66289.