vite-plugin-solid icon indicating copy to clipboard operation
vite-plugin-solid copied to clipboard

Sourcemaps missing for *.ts-files

Open benbender opened this issue 3 years ago • 2 comments

If I have some non-jsx-files in my project, say f.e. src/lib/auth.ts, vite complains with the following error (started with DEBUG="vite:sourcemap" set):

Sourcemap for "project/src/lib/auth.ts" points to missing source files
  vite:sourcemap Missing sources:
  vite:sourcemap  project/src/lib/auth.tsx +1ms

If I rename the file to end with .tsx (instead of .ts), the error vanishes.

benbender avatar Jul 19 '22 12:07 benbender

Similar issue for vite-plugin-react: https://github.com/vitejs/vite/issues/5438

benbender avatar Jul 19 '22 12:07 benbender