aleclarson / vite-tsconfig-paths

Support for TypeScript's path mapping in Vite
MIT License
1.28k stars 45 forks source link

[vite:css] Failed to find '@/norm.css' #41

Open aladdin-add opened 2 years ago

aladdin-add commented 2 years ago
[vite:css] Failed to find '@/norm.css'
  in [
    /Users/weiran/repo/dian/vite-tsconfig-paths/demo/src
  ]
file: /Users/weiran/repo/dian/vite-tsconfig-paths/demo/src/styles.css
error during build:
Error: Failed to find '@/norm.css'

I've made a repro: #42

aleclarson commented 2 years ago

This should be fixed by https://github.com/vitejs/vite/pull/3032, but someone needs to write tests for it before it can be merged :(

edit: Also depends on https://github.com/vitejs/vite/pull/10555

bluwy commented 1 year ago

FWIW Astro has solved this with this hack and it has been working great so far.

emosheeep commented 9 months ago

https://github.com/aleclarson/vite-tsconfig-paths/issues/30#issuecomment-1829923317