-
-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Error after SvelteKit update - blocks the entire page when vitePlugin.experimenta.inspector is enabled.
Browser console log:
GEThttp://localhost:5173/node_modules/@sveltejs/vite-plugin-svelte/src/ui/inspector/load-inspector.js
[HTTP/1.1 500 Internal Server Error 0ms]
Wczytanie modułu z adresu „http://localhost:5173/node_modules/@sveltejs/vite-plugin-svelte/src/ui/inspector/load-inspector.js” zostało zablokowane z powodu niedozwolonego typu MIME („”).
Wczytanie się nie powiodło dla modułu ze źródłem „http://localhost:5173/node_modules/@sveltejs/vite-plugin-svelte/src/ui/inspector/load-inspector.js”.
Wczytanie się nie powiodło dla modułu ze źródłem „http://localhost:5173/node_modules/@sveltejs/kit/src/runtime/env.js?v=37e7caa4”.
Wczytanie się nie powiodło dla modułu ze źródłem „http://localhost:5173/node_modules/svelte-hmr/runtime/index.js?v=37e7caa4”.
Wczytanie się nie powiodło dla modułu ze źródłem „http://localhost:5173/node_modules/svelte-hmr/runtime/overlay.js?v=37e7caa4”.
Server terminal log:
[vite] Internal server error: ENOENT: no such file or directory, open '/media/WebDev/svelte-project/node_modules/@sveltejs/vite-plugin-svelte/src/ui/inspector/load-inspector.js?v=37e7caa4'
Reproduction
- install and enable the latest SvelteKit:
npm create svelte@latest my-app
cd my-app
npm install
npm run dev -- --open- Add this to
svelte.config.js:
vitePlugin: {
experimental: {
inspector: {
toggleKeyCombo: "os-alt",
holdMode: true
}
}
}To have this effect:
import adapter from '@sveltejs/adapter-auto';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter()
},
vitePlugin: {
experimental: {
inspector: {
toggleKeyCombo: "os-alt",
holdMode: true
}
}
}
};
export default config;- Refresh the page
Result: white page in the browser, log in the browser console, log in the server terminal
Logs
No response
System Info
System:
OS: Linux 5.10 Arch Linux
CPU: (4) x64 AMD Athlon(tm) X4 950 Quad Core Processor
Memory: 9.98 GB / 15.07 GB
Container: Yes
Shell: 5.1.8 - /bin/bash
Binaries:
Node: 18.4.0 - ~/.nvm/versions/node/v18.4.0/bin/node
Yarn: 1.22.10 - /usr/bin/yarn
npm: 8.12.1 - ~/.nvm/versions/node/v18.4.0/bin/npm
Browsers:
Brave Browser: 100.1.37.109
Firefox: 102.2.0esr
npmPackages:
@sveltejs/adapter-auto: next => 1.0.0-next.69
@sveltejs/kit: next => 1.0.0-next.454
svelte: ^3.44.0 => 3.49.0
vite: ^3.1.0-beta.1 => 3.1.0-beta.1Severity
blocking all usage of vite-plugin-svelte
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working