You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I declare vitePreprocess as my preprocessor I get these warnings for al my pages and components
Sourcemap for "/mnt/Omo Stuff/from stuff/web-svelte/site/src/lib/posts/first-post.md" points to missing source files Sourcemap for "/mnt/Omo Stuff/from stuff/web-svelte/site/src/routes/+layout.svelte" points to missing source files Sourcemap for "/mnt/Omo Stuff/from stuff/web-svelte/site/src/routes/+page.svelte" points to missing source files Sourcemap for "/mnt/Omo Stuff/from stuff/web-svelte/site/src/lib/components/BlogCard.svelte" points to missing source files
Once I change it back to svelte-preprocess the errors go away,
This seems to be caused by spaces in the directory names of parent directories.
workaround: don't use spaces. Will have to investigate and see if there is something vite-plugin-svelte has to encode or if it is on vite itself to do something about it.
> [email protected] dev /home/dominikg/develop/reproductions/space test
> vite dev
Forced re-optimization of dependencies
VITE v4.0.3 ready in 521 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h to show help
Sourcemap for "/home/dominikg/develop/reproductions/space test/src/routes/Counter.svelte" points to missing source files
9:55:23 AM [vite-plugin-svelte] ssr compile done.
package files time avg
space-test 5 69.5ms 13.9ms
is 📦 v0.0.1 via v18.11.0 took 1m51s
develop/reproductions/space test ❯ cd ..
~/develop/reproductions ❯ mv space\ test/ space_test
~/develop/reproductions ❯ cd space_test/
is 📦 v0.0.1 via v18.11.0
develop/reproductions/space_test ❯ pnpm dev
> [email protected] dev /home/dominikg/develop/reproductions/space_test
> vite dev
VITE v4.0.3 ready in 507 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h to show help
9:57:30 AM [vite-plugin-svelte] ssr compile done.
package files time avg
space-test 5 62.1ms 12.4ms
is 📦 v0.0.1 via v18.11.0 took 14s
develop/reproductions/space_test ❯
Describe the bug
Whenever I declare vitePreprocess as my preprocessor I get these warnings for al my pages and components
Sourcemap for "/mnt/Omo Stuff/from stuff/web-svelte/site/src/lib/posts/first-post.md" points to missing source files Sourcemap for "/mnt/Omo Stuff/from stuff/web-svelte/site/src/routes/+layout.svelte" points to missing source files Sourcemap for "/mnt/Omo Stuff/from stuff/web-svelte/site/src/routes/+page.svelte" points to missing source files Sourcemap for "/mnt/Omo Stuff/from stuff/web-svelte/site/src/lib/components/BlogCard.svelte" points to missing source files
Once I change it back to svelte-preprocess the errors go away,
Reproduction URL
https://github.com/omar-abdul/viteissue
Reproduction
Change svelte-preprocess with vitePreprocess
Logs
System Info
Node version 19.3.0 NPM version 9.2.0 vite version 4.0.0 svelte-preprocess version : 4.10.7
The text was updated successfully, but these errors were encountered: