Next.js Discord

Discord Forum

Problem deploying to Vercel

Unanswered
Cão de Gado Transmontano posted this in #help-forum
Open in Discord
Cão de Gado TransmontanoOP
I'm getting a problem deploying to Vercel: "Error: The package "@esbuild/linux-x64" could not be found, and is needed by esbuild."
However, I have no idea why it is trying to build esbuild. I have tsup on one of my node packages but it is only a devDependency.
Can someone help me debug this? Thank you very much.

8 Replies

Toyger
https://github.com/evanw/esbuild/issues/1819
looks like some particular versions of esbuild not exist for linux, as people advice try to remove package-lock.json and if you don't have any version specific packages that should help you
Cão de Gado TransmontanoOP
I don't have any depedency on esbuild
the only thing I see is a package that I have that has a devdependency on tsup and tsup has a dependency on esbuild
but given it is a devdependency, it shouldn't impact in Vercel right?
I've tried removing the package-lock, keeps happening
hmm scratch that. I removed the package that I thought could be causing the product. How do I know what might be adding esbuild to the build? I'm not using it in my project
Did an npm ls, it seems drizzle-kit and tsx (both devDependencies) are adding esbuild. How would I fix this?
wealth-tracker@0.1.0 <redacted>
├─┬ drizzle-kit@0.20.7
│ ├─┬ @esbuild-kit/esm-loader@2.6.5
│ │ └─┬ @esbuild-kit/core-utils@3.3.2
│ │   └── esbuild@0.18.20
│ ├─┬ esbuild-register@3.5.0
│ │ └── esbuild@0.19.10 deduped
│ ├── esbuild@0.19.10
│ └─┬ wrangler@3.22.0
│   ├─┬ @esbuild-plugins/node-globals-polyfill@0.2.3
│   │ └── esbuild@0.19.10 deduped
│   ├─┬ @esbuild-plugins/node-modules-polyfill@0.2.2
│   │ └── esbuild@0.19.10 deduped
│   └── esbuild@0.17.19
└─┬ tsx@3.14.0
  └── esbuild@0.18.20