qwik: [🐞] styled component doesn't work in prod

Which component is affected?

Qwik Runtime

Describe the bug

See https://github.com/wmertens/styled-vanilla-extract/issues/15#issuecomment-1581981137 for an analysis

Reproduction

~https://stackblitz.com/edit/qwik-starter-wadzsa?file=src/routes/index.tsx~

https://stackblitz.com/edit/qwik-starter-8kdqva?file=package-lock.json,package.json

Steps to reproduce

notice the adapter for a static site, but disabling it doesn’t make a difference.

running in dev mode it works fine. Running in preview, the styled component disappears.

Upgrading qwik to 1.1.5 and styled to 5.5.0-0 doesn’t help.

However, with qwik 0.100.0 it does work!

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 7.17.0 - /usr/local/bin/npm
  npmPackages:
    @builder.io/qwik: ^1.1.5 => 1.1.5 
    @builder.io/qwik-city: ^1.0.0 => 1.1.5 
    undici: ^5.22.1 => 5.22.1 
    vite: ^4.3.9 => 4.3.9

Additional Information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (2 by maintainers)

Most upvoted comments

Yeah that’s bad… I have an idea why this is happening! Node resolution is not the same as Vite resolution.