nuxt / vercel-builder

Vercel Builder for Nuxt
MIT License
646 stars 75 forks source link

Unexpected internal error occurred during build #800

Closed edwh closed 1 year ago

edwh commented 1 year ago

I'm trying Vercel for the first time, using vercel-edge (set via NITRO_PRESET), on a project that deploys ok on Azure Functions. I repeatably see this when building:

[17:56:30.391] 218 packages are looking for funding
[17:56:30.391]   run `npm fund` for details
[17:57:11.018] Build Completed in /vercel/output [7m]
[17:57:18.055] An unexpected internal error occurred
[17:57:18.196] internal_server_error: An unexpected internal error occurred

I'm not sure how to debug this.

This is the project: https://github.com/freegle/iznik-nuxt3

These are the Vercel settings I think I've changed from the defaults:

image image image

Any suggestions?

danielroe commented 1 year ago

This builder should not be used with Nuxt 3 - it is not needed.

edwh commented 1 year ago

@danielroe Sorry to be dim, but what should I be using instead to use Vercel Edge Functions? Should I just use vercel? Does that mean that this entire repo should be removed?

vercel-edge is listed on https://nitro.unjs.io/deploy/providers/vercel. Is that documentation wrong?

danielroe commented 1 year ago

This repo is a legacy repo purely for Nuxt 2 - see https://github.com/nuxt/vercel-builder#when-to-use-it.

You do not need to configure Nuxt 3/Vercel at all when using them together - it should be zero-config.

edwh commented 1 year ago

@danielroe Ok, so I've opened this on the wrong repo, sorry. But using NITRO_PRESET of vercel-edge still doesn't work for me. So if that is still the way to use the Edge functions as per https://nitro.unjs.io/deploy/providers/vercel, could you kindly point me at where I should be opening the issue?

danielroe commented 1 year ago

@edwh Ideally see if you can replicate a minimal nitro reproduction (without Nuxt) and raise at https://github.com/unjs/nitro. Or you can raise an issue with a minimal Nuxt reproduction at https://github.com/nuxt/nuxt.