Windows css resolution
Nvos opened this issue · comments
Nvos commented
Describe the bug
It seems that vite plugin function getAbsoluteId
always receives unix path (even on windows) and uses path.sep
due to which comparison fails on windows resulting in failing to find matching css in cssCache
Issue seems to be there:
Reproduction
https://github.com/Nvos/vanilla-extract-vinxi-repro
System Info
System:
OS: Windows 10 10.0.19045
CPU: (12) x64 Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
Memory: 21.50 GB / 31.80 GB
Binaries:
Node: 18.15.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 9.5.0 - C:\Program Files\nodejs\npm.CMD
pnpm: 8.6.7 - ~\AppData\Roaming\npm\pnpm.CMD
Browsers:
Edge: Chromium (122.0.2365.66)
@vanilla-extract/css: ^1.14.1 => 1.14.1
@vanilla-extract/vite-plugin: ^4.0.4 => 4.0.4
Used Package Manager
pnpm
Logs
No response
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
Adam Skoufis commented
This could potentially be the same issue as #1339. Thanks for investigating.
Alex Yang commented
Same error here dai-shi/waku#559