Open solanacryptodev opened 11 months ago
Ok, after some troubleshooting...I've narrowed the @sveltejs/adapter-vercel
build failure down to these two packages. Problem is, this is app breaking. I can't use Sveltekit if I can't deploy to Vercel with these highly important packages. I use both of these packages in a Next.JS app I built and launched onto Vercel. I've tried using the old versions of both packages that I used in the Next app a few months ago and it still failed. I also switched out @sveltejs/adapter-vercel
for @sveltejs/adapter-auto
and while it builds locally with auto...it still fails to deploy in Vercel. So that's a false positive.
I'm not entirely sure who to ask for advice for this. The Sveltejs team, the Vite team, or the team that owns these packages. My next step is to whip up a default NextJS app and install these packages and try to deploy to vercel and see if I run into the same error, but given the fact that I did that a few months back and didn't run into this issue, I'm inclined to think the error is either with Svelte/Sveltekit or Vite.
@solana/wallet-adapter-base": "^0.9.23",
@solana/wallet-adapter-wallets": "^0.19.24",
I ran npm run build
and pnpm build
(after pnpm install
) inside the Stackblitz container and both worked fine - probably because you didn't use them in the reproduction repo so they were just omitted. Since you said you narrowed this down, could you provide another Stackblitz link where the build actually fails?
Describe the bug
Hello, so I'm using Sveltekit to build a web3 application that uses several libraries popular in the crypto space (although, I suspect the issue is due to popular dependencies). I want to use Vercel, but I ran into issues deploying it due to deploy errors. So I decided to build it locally first and have come across the same errors that I saw on Vercel's end in my local terminal. There is another issue that is very similar to this one, but I wanted to create my own with a repoduction. The Vite build process goes along fine until it hits
@sveltejs/adapter-vercel
Reproduction
This is a reproduction. Since I believe this is related to one (or several) of the web3 packages I'm using, all I did was clone node.new and pnpm installed the packages that I think triggers this. I also copied over my tsconfig.json, vite.config.ts and svelte.config.
https://stackblitz.com/edit/sveltejs-kit-template-default-ztpuwo?file=package.json
Logs
Severity
blocking all usage of SvelteKit
Additional Information
At this moment, this is blocking all builds (deployments) of Sveltekit locally and on Vercel. Localhost works fine though, but this is a pretty significant blocker and prevents me from testing the application itself on a staging site. Only thing I can really do is pivot to other tasks that don't require interacting with the blockchain any. One final thing, when I installed these packages onto StackBlitz, I tested the default code and the project builds fine, after installation of these packages (which work fine with other frameworks like Next.js and I have a project on Vercel with some of the Metaplex libraries being used)..all of a sudden the default StackBlitz project no longer builds. I also noticed it says these packages are deprecated and one of them appears in the error log I posted above for crypto, etc.