withastro / astro

The web framework for content-driven websites. ⭐️ Star to support our work!
https://astro.build
Other
46.93k stars 2.49k forks source link

Issue with Astro 5 and vercel adapter #12485

Closed javiern8410 closed 1 day ago

javiern8410 commented 1 day ago

Astro Info

When try to add vercel adapter on Astro 5 see this error in console.

[ERROR] [config] The adapter @astrojs/vercel/serverless does not currently support the feature "sharp". Your project may not build correctly.

This is when trying to install manualy because automatic install fail.

npx astro add vercel
√ Resolving packages...

  Astro will run the following command:
  If you skip this step, you can always run it yourself later

 ╭─────────────────────────────────────╮
 │ npm install @astrojs/vercel@^7.8.2  │
 ╰─────────────────────────────────────╯

√ Continue? ... yes
× Installing dependencies...

 The command `npm install @astrojs/vercel@^7.8.2` exited with code 1

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Error when add vercel adapter on Astro 5

What's the expected result?

Build to Vercel with vercel adapter

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-soh3xs

Participation

ascorbic commented 1 day ago

Hi. When you're working with the beta version you need to ensure you add beta versions of adapters. You can do this with npx astro add vercel@beta

javiern8410 commented 3 hours ago

Hi. When you're working with the beta version you need to ensure you add beta versions of adapters. You can do this with npx astro add vercel@beta

Thanks @ascorbic, this work fine 👍