Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh Nuxt 3 install on Vercel: The package "esbuild-linux-64" could not be found #58

Closed
birdlavv opened this issue Aug 21, 2023 · 5 comments

Comments

@birdlavv
Copy link

Reproduction:

Repo: https://github.com/birdlavv/vue-email-reproduction
Vercel deploy: https://vue-email-repro.vercel.app/api/test

The reproduction was made by

  1. Creating a blank Nuxt 3 project
  2. Installing vue-email
  3. Adding WelcomeEmail.vue
  4. Adding /api/test.ts
export default defineEventHandler(async (event) => {
  const template = await useCompiler('WelcomeEmail.vue')
  return template
})

Any assistance/insight into what is causing this would be greatly appreciated.

Possible related issues:

vercel/vercel#7287
evanw/esbuild#1819

@Dave136
Copy link
Member

Dave136 commented Aug 21, 2023

@birdlavv Hi! Thanks for sharing your feedback, i've a couple of questions... It just broke on deployment? It works on development?

@birdlavv
Copy link
Author

birdlavv commented Aug 21, 2023

Yes @Dave136 , it works as expected in development but breaks at deployment runtime. There don't seem to be any build warnings or errors. I do not yet know if this is a cross-platform error or if it is specific to Vercel deployments.

@Dave136
Copy link
Member

Dave136 commented Aug 21, 2023

@birdlavv I test the nuxt implementation, npm and yarn throw error, it seems it's a issue with esbuild.

I suggest you use pnpm, it resolves as well.

I created a repo, where i tested the functionalities, open the terminal, click the button and you can see the result.

Here i left you the repo and production link:

@birdlaw-cheetahbooking
Copy link

I can confirm that using pnpm as a workaround works on Vercel.
Thanks, @Dave136!

@chang-ryan
Copy link

chang-ryan commented Mar 3, 2024

Hi guys, how do you get Vercel to use pnpm? Will the presence of a pnmp-lock suffice?

EDIT:
It would appear so https://vercel.com/changelog/projects-using-pnpm-can-now-be-deployed-with-zero-configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants