aleclarson / vite-tsconfig-paths

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

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

Closed aladdin-add closed 3 weeks ago

aladdin-add commented 3 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 1 year ago

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

aleclarson commented 3 weeks ago

Duplicate of #30, so closing this.