[Bug?]: @vanilla-extract/vite-plugin causes errors when used with SolidStart #1642
Open
2 tasks done
Labels
bug
Something isn't working
Duplicates
Latest version
Current behavior 😯
Vercel shows the following error page:
If you open Runtime logs of your deployment, you will see an error similiar to the following (but with different line numbers probably):
Here is a peek into
.vercel/output/functions/__nitro.func/chunks/runtime.mjs
Expected behavior 🤔
The page should display fine with styling added by Vanilla Extract.
Steps to reproduce 🕹
Steps:
@vanilla-extract/vite-plugin
to Vite plugins.css.ts
file (may even be empty) and import it somewhereContext 🔦
I am trying to build a website with Solid Start and Vanilla Extract, and host it on Vercel. I have tried other cloud hosting providers, some of them also have problems with Solid Start + Vanilla Extract, but the errors are very different between the providers. I have chosen to report Vercel specifically because it seems to be the Nitro provider with the best support (not sure really). Also reproducing this issue for different providers would be a pain (each one has its own CLI, account, dashboard, etc.).
Also I am reporting this issue here and not to Vanilla Extract or Vercel is because Vanilla Extract works fine with plain SolidJS, or with other frameworks like NextJS.
Your environment 🌎
The text was updated successfully, but these errors were encountered: