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

css modules not built when building in watch mode #7395

Closed
7 tasks done
danvoyce opened this issue Mar 21, 2022 · 2 comments
Closed
7 tasks done

css modules not built when building in watch mode #7395

danvoyce opened this issue Mar 21, 2022 · 2 comments

Comments

@danvoyce
Copy link

Describe the bug

When using css modules and running build --watch, the css file is not rebuilt when changed.

Reproduction

https://stackblitz.com/edit/vitejs-vite-kky48z?file=src%2FApp.module.css&terminal=dev

System Info

System:
    OS: macOS 12.2
    CPU: (10) arm64 Apple M1 Max
    Memory: 281.78 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v14.18.1/bin/yarn
    npm: 8.3.0 - ~/.nvm/versions/node/v14.18.1/bin/npm
  Browsers:
    Chrome: 99.0.4844.74
    Firefox: 97.0.1
    Safari: 15.3
  npmPackages:
    @vitejs/plugin-react: ^1.0.7 => 1.2.0 
    vite: ^2.8.0 => 2.8.6

Used Package Manager

npm

Logs

No response

Validations

@gwhobbs
Copy link

gwhobbs commented Mar 21, 2022

See workaround in #6907

@sapphi-red
Copy link
Member

#7132 fixes this issue and I confirmed that vite v2.9.1 (which includes that PR) is working well.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants