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

Vite doesn't detect changes in .css (.less, .scss, etc...) files in watch mode in Vite + Vue when file is attached with <style src="..."></style> #16024

Closed
7 tasks done
minenwerfer opened this issue Feb 25, 2024 · 1 comment

Comments

@minenwerfer
Copy link

minenwerfer commented Feb 25, 2024

Describe the bug

When using symlinks inside node_modules (to test a library on an edge application, for example), Vite is unable to detect changes in files attached in Vue SFC's <style src="..."></style>.

If however the file is imported using import './file.css' inside <script setup></script>, changes on it start to be detected again.

Reproduction

https://github.com/minenwerfer/vite-repro

Steps to reproduce

Please look into the readme file.

System Info

System:
    OS: Linux 6.5 Arch Linux
    CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
    Memory: 4.09 GB / 7.58 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.6.1 - /usr/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 10.4.0 - /usr/bin/npm
    pnpm: 8.7.6 - /usr/bin/pnpm
    bun: 1.0.25 - ~/.bun/bin/bun
  Browsers:
    Chromium: 117.0.5938.88
  npmPackages:
    @vitejs/plugin-vue: ^5.0.4 => 5.0.4 
    vite: ^5.1.4 => 5.1.4

Used Package Manager

npm

Logs

No response

Validations

@minenwerfer minenwerfer changed the title Vite doesnt detect changes in css files in watch mode in vite + vue when css is attached with <style src="..."></style> Vite doesn't detect changes in .css (.less, .scss, etc...) files in watch mode in Vite + Vue when file is attached with <style src="..."></style> Feb 25, 2024
@bluwy
Copy link
Member

bluwy commented Feb 26, 2024

Duplicate of vitejs/vite-plugin-vue#359

@bluwy bluwy marked this as a duplicate of vitejs/vite-plugin-vue#359 Feb 26, 2024
@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2024
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

2 participants