qwikifiers / qwik-nx

Nx plugin for Qwik
131 stars 24 forks source link

Nx HMR not working with styled #60

Open n8sabes opened 1 year ago

n8sabes commented 1 year ago

Describe the bug Hot module reload not working with styled updates making it very difficult to develop in Nx. Requires full restart for EVERY edit.

To Reproduce

  1. See the video: HERE
  2. Clone the repo git clone https://github.com/n8sabes/nx-styled-ve.git
  3. cd nx-styled-ve
  4. pnpm i
  5. nx serve client
  6. Change styles in each of the fancy text files and watch for live updates.

Expected behavior Recompile appears to happen, or partially happen, but no updates occur in the browser.

shairez commented 1 year ago

that's weird indeed

my guess is that it's a bug in the nx/vite plugin

plus it only happens for the styled way right? with normal css it still works right?

n8sabes commented 1 year ago

@shairez, You are correct. It only happens in Vanilla Extract and Styled Vanilla Extract.

Please see video: HERE