You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug styled-vanilla-extract, as defined in the Qwik Documentation crashes server-side.
To Reproduce
Below is a 2~3 minute configuration that demonstrates styled-vanilla-extract generating a [vite] Internal sever error. I've also included two lines of code for non-styled support from @vanilla-extract as a working reference.
1. Create a clean workspace
pnpx create-nx-workspace@latest foobar --preset=ts
cd foobar
pnpm add -D qwik-nx
pnpm exec nx g qwik-nx:app qwik --no-interactive
2. Since qwik add styled-vanilla-extract is broken in Qwik Nx, install VE and SVE manually —
Expected behavior
It should work, but crashes with a server-side error:
[vite] Internal server error: Failed to load url /*PROJ_PATH*/foobar/packages/qwiklab/~~~/foobar/src/routes/styles.css.ts (resolved id: /*PROJ_PATH*/foobar/packages/qwiklab/~~~/foobar/src/routes/styles.css.ts). Does the file exist?
NOTE Reconfigure the vite.config.ts to use the standard Vanilla Extract vite plugin and it works fine. @wmertens, any ideas why?
Describe the bug
styled-vanilla-extract
, as defined in the Qwik Documentation crashes server-side.To Reproduce
Below is a 2~3 minute configuration that demonstrates
styled-vanilla-extract
generating a[vite] Internal sever error
. I've also included two lines of code for non-styled support from@vanilla-extract
as a working reference.1. Create a clean workspace
2. Since
qwik add styled-vanilla-extract
is broken in Qwik Nx, install VE and SVE manually —pnpm add -D @vanilla-extract/vite-plugin styled-vanilla-extract @builder.io/qwik @vanilla-extract/css undici --filter qwik
3. Update / Add these 3 files
code .
4. Run
Expected behavior
It should work, but crashes with a server-side error:
[vite] Internal server error: Failed to load url /*PROJ_PATH*/foobar/packages/qwiklab/~~~/foobar/src/routes/styles.css.ts (resolved id: /*PROJ_PATH*/foobar/packages/qwiklab/~~~/foobar/src/routes/styles.css.ts). Does the file exist?
NOTE Reconfigure the
vite.config.ts
to use the standard Vanilla Extract vite plugin and it works fine. @wmertens, any ideas why?Additional context
https://qwik.builder.io/integrations/integration/styled-vanilla-extract/
https://github.com/wmertens/styled-vanilla-extract
https://vanilla-extract.style/documentation/integrations/vite/
https://vanilla-extract.style/documentation/getting-started/#create-a-style
Add any other context about the problem here.
See Related Issue: Styled Vanilla Extract crashes in Qwik Nx projects
The text was updated successfully, but these errors were encountered: