-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source maps in VSCode not working for debug if white space is in url #17977
Comments
I think I might have the same issue. I also use SvelteKit and sync my files across devices using iCloud Drive. macOS puts iCloud Drive files into a directory featuring a whitespace ( TypeError: Cannot read properties of undefined (reading 'src')
at eval (eval at instantiateModule (file:///Users/sl/Library/Mobile%20Documents/com~apple~CloudDocs/2401_project/frontend/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:52895:24), <anonymous>:43:27)
at Object.$$render (eval at instantiateModule (file:///Users/sl/Library/Mobile%20Documents/com~apple~CloudDocs/2401_project/frontend/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:52895:24), <anonymous>:153:16)
at eval (eval at instantiateModule (file:///Users/sl/Library/Mobile%20Documents/com~apple~CloudDocs/2401_project/frontend/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:52895:24), <anonymous>:68:129)
at $$render (eval at instantiateModule (file:///Users/sl/Library/Mobile%20Documents/com~apple~CloudDocs/2401_project/frontend/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:52895:24), <anonymous>:153:16)
at Object.render (eval at instantiateModule (file:///Users/sl/Library/Mobile%20Documents/com~apple~CloudDocs/2401_project/frontend/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:52895:24), <anonymous>:161:17)
at Module.render_response (eval at instantiateModule (file:///Users/sl/Library/Mobile%20Documents/com~apple~CloudDocs/2401_project/frontend/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:52895:24), <anonymous>:127:33)
at async Module.render_page (eval at instantiateModule (file:///Users/sl/Library/Mobile%20Documents/com~apple~CloudDocs/2401_project/frontend/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:52895:24), <anonymous>:296:10)
at async resolve (eval at instantiateModule (file:///Users/sl/Library/Mobile%20Documents/com~apple~CloudDocs/2401_project/frontend/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:52895:24), <anonymous>:460:18)
at async Module.respond (eval at instantiateModule (file:///Users/sl/Library/Mobile%20Documents/com~apple~CloudDocs/2401_project/frontend/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:52895:24), <anonymous>:333:20)
at async file:///Users/sl/Library/Mobile%20Documents/com~apple~CloudDocs/2401_project/frontend/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:524:22 And the same project without whitespace in its path: TypeError: Cannot read properties of undefined (reading 'src')
at /Users/sl/Offline/2401_project/frontend/src/routes/+layout.svelte:36:63
at Object.$$render (/Users/sl/Offline/2401_project/frontend/node_modules/svelte/src/runtime/internal/ssr.js:134:16)
at /Users/sl/Offline/2401_project/frontend/.svelte-kit/generated/root.svelte:46:40
at $$render (/Users/sl/Offline/2401_project/frontend/node_modules/svelte/src/runtime/internal/ssr.js:134:16)
at Object.render (/Users/sl/Offline/2401_project/frontend/node_modules/svelte/src/runtime/internal/ssr.js:142:17)
at Module.render_response (/Users/sl/Offline/2401_project/frontend/node_modules/@sveltejs/kit/src/runtime/server/page/render.js:171:29)
at async Module.respond_with_error (/Users/sl/Offline/2401_project/frontend/node_modules/@sveltejs/kit/src/runtime/server/page/respond_with_error.js:85:10)
at async Module.render_page (/Users/sl/Offline/2401_project/frontend/node_modules/@sveltejs/kit/src/runtime/server/page/index.js:305:10)
at async resolve (/Users/sl/Offline/2401_project/frontend/node_modules/@sveltejs/kit/src/runtime/server/respond.js:449:18)
at async Module.respond (/Users/sl/Offline/2401_project/frontend/node_modules/@sveltejs/kit/src/runtime/server/respond.js:322:20) |
Simply escaping the space with |
Describe the bug
I can't debug using inline VSCode debugger when space is in url of the file. Please check the issue in SvelteKit repo: sveltejs/kit#12625 (comment)
Reproduction
sveltejs/kit#12625
Steps to reproduce
Please check SvelteKit issue with detailed instructions how to reproduce this issue: sveltejs/kit#12625
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: