Cannot build for Vercel
For context
So far I'm not satisfied with Solid Start because I wasn't able to deploy the app at least anywhere (I tried Vercel, Netlify and Cloudflare). But Vercel is my main target so this question is about deploying to Vercel specifically.
Also I haven't really seen anyone to have the same problem as I do.
How to reproduce
1. Create a new Solid Start project
2. Choose any template (I chose
hackernews
)
3. Edit your app.config.ts
as follows:
4. Run npm run build
Error
32 Replies
not sure what the error is at first glance, but have you tried
vercel
instead of vercel-edge
?Using
vercel
gives an error after deploying to vercel.which error?
Wait, let me get it.
Wait WHAT... It worked! BUT I've been trying to deploy to Vercel for like 2 months now and it wasn't working... I'm pretty sure I'm gonna face some issues in the future
This is my first time seeing a Solid Start site deployed by me.
I'll keep this thread updated if something breaks.
hm vercel-edge is working fine for me
That's the point, I haven't seen anyone else to have the same issues as I do.
Actually I'm using
yarn
instead of npm if that means anything (I'm not using Yarn PNP)i use pnpm, maybe that's got something to do with it?
idk...
package managers shouldn't affect how things work
a lot of stuff shouldn't affect how things work 😅
Oh, here we go:
![No description](https://cdn.answeroverflow.com/1265912851877593119/image.png)
Oh wait it might be an error on my side
pardon me
Forgot to add my vite plugins
Here it is:
is that with the hackernews example or your own code?
basic
example with a few things added, but I haven't really changed much.
Here's the problematic peace in the generated runtime.mjs
![No description](https://cdn.answeroverflow.com/1265914081995657217/image.png)
I'm using Vanilla Extract just so you know
Maybe it is the cause but I will never give it up
i have a feeling it might be
though people do use vanilla extract + start already