Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nx HMR not working with styled #60

Open
n8sabes opened this issue Feb 5, 2023 · 2 comments
Open

Nx HMR not working with styled #60

n8sabes opened this issue Feb 5, 2023 · 2 comments

Comments

@n8sabes
Copy link
Contributor

n8sabes commented Feb 5, 2023

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
Copy link
Contributor

shairez commented Feb 5, 2023

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
Copy link
Contributor Author

n8sabes commented Feb 5, 2023

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

Please see video: HERE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants