Skip to content

[vite] [unocss:global:build:scan] could not find "xx/__uno.css" in build watch mode #4616

@wangxdmm

Description

@wangxdmm

UnoCSS version

66.1.0-beta.12

Describe the bug

  1. vite build --watch
  2. Changing one file will cause this error "[unocss:global:build:scan] Could not load /home/projects/unocss-unocss-lw1h3nyc/src/__uno.css (imported by src/main.ts): [plugin unocss:global:build:scan] [unocss] layer "/home/projects/unocss-unocss-lw1h3nyc/src/__uno.css" is imported but not being resolved before, it might be an internal bug of UnoCSS"

Reproduction

https://stackblitz.com/edit/unocss-unocss-lw1h3nyc?file=package.json,src%2Fmain.ts,src%2FApp.vue

System Info

System: wsl2 Debian
Browser: Version 135.0.7049.96 (Official Build) (64-bit)

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions