vercel-builder icon indicating copy to clipboard operation
vercel-builder copied to clipboard

Nuxt build - Got error No "exports" main defined in /vercel/path0/.vercel/builders/node_modules/unicorn-magic/package.json

Open Gregoire-Fremaux opened this issue 11 months ago • 2 comments

Hello, we have an issue deploying our Nuxt project (see the following image). The error is not related to our code, which hasn't had any major changes. Who can explain this?

Image

Gregoire-Fremaux avatar Feb 13 '25 14:02 Gregoire-Fremaux

Same bug observed on our end, no way to push any change to vercel anymore

PaulBouisset avatar Feb 19 '25 06:02 PaulBouisset

this is likely related to a deep dependency change, either of nuxt/vercel-builder or in a vercel build dependency. (If it's the latter, the Vercel team may be able to help.)

You may be able to work around the issue by using type: 'module' or setting a resolution in your package.json

Nuxt v2 is EOL, so I'll be archiving the repo shortly, but feel free to follow up with me via Discord/email

danielroe avatar Feb 20 '25 13:02 danielroe