Closed neobats closed 2 months ago
Gah! I didn't look through the existing issues before submitting this; I followed the dev server's instructions straightaway. Seems reasonable to consider this a duplicate of https://github.com/vikejs/vike/issues/1145
The error message should be improved though. Can you publish a reproduction?
Description
This could be an issue in user error (this was my second time setting up vite-tsconfig-paths), but I added vite-tsconfig-paths to my dev dependencies and my
vite.config.ts
, set up my paths intsconfig.json
. I restarted the dev server, and then noticed that hot module reloading stopped working in dev.I rolled back my changes for the config paths/aliases, restarted the dev server, and the hot module reloading worked like a charm!
If I add the tsconfig-paths back in, the hot module reloading breaks again. Please let me know what other information I can provide or if there's some other way I can be a help!
This error was raised:
my vite.config.ts
my tsconfig.json
example import using the alias: