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:
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
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
Yes exactly
can you make a reproduction of this?
Ughhh
I just need to commit the repo
GitHub
GitHub - deminearchiver/material-solid: Material Components for Sol...
Material Components for SolidJS. Contribute to deminearchiver/material-solid development by creating an account on GitHub.
1. Clone
2.
yarn install
3. yarn : @material-solid/docs-next build
4. yarn : @material-solid/docs-next deploy
probably worth putting those instructions in the readme if anyone else needs to look at it
It's work in progress...
So, have you tried deploying it from your machine?
yeah i'm getting another error
Can you show?
I have set up github actions
for vercel
it's the vanilla extract plugin, removing it stops the error
bruhhhh
My day is ruined by those news
So do you think I should ask this question in the Vanilla Extract discord server / github repo?
not sure, it depends where the bug is
i'd recommend making an issue on the Start repo with a minimal reproduction
you could also try using panda css for now
afaik it's similar to vanilla extract
but my whole project is using vanilla extract
unrelated to that problem but i don't think your components package has the correct
exports
any export that exports files with JSX should have the solid
export condition that points to a jsx
fileFor now I don't have a build process
the library is work in progress so for now I simply export ts files
I created a minimal repro
https://github.com/deminearchiver/solid-start-vanilla-extract
GitHub
GitHub - deminearchiver/solid-start-vanilla-extract
Contribute to deminearchiver/solid-start-vanilla-extract development by creating an account on GitHub.