-
Notifications
You must be signed in to change notification settings - Fork 1
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
Inspector component breaks Threlte App #20
Comments
Same issue for me. |
Hello! It's a bit hard to pinpoint the issue without a full project to investigate. It's possible that the issue may be elsewhere and not specifically with https://stackblitz.com/edit/vitejs-vite-sfwjke?file=src%2FScene.svelte&terminal=dev |
I understand! Here's the issue reproduced: https://stackblitz.com/edit/svelte-kit-z4jvcg?file=src%2Froutes%2F%2Bpage.svelte
|
Thanks for including an example! That's interesting. I'm not sure why, but I was able to fix the issue in your stackblitz by creating a new |
Thanks for providing the workaround, however it only seems to work when I make the changes while having 'npm run dev' already going. If I restart the dev process it throws the same errors as above again. |
Another workaround you could go for while I continue to investigate is to disable SSR in the part of you SvelteKit app that imports and renders the inspector: // +page.ts
export let ssr = false |
This should be fixed in |
After regular install of the three-inspect module and following the documentation for adding to Threlte Ecosystem ended up with this error bellow on the screenshot.
Current module dependencies:
"@threlte/core": "latest",
"@threlte/extras": "latest",
"svelte": "^4.2.15",
"three": "^0.163.0",
"three-inspect": "^0.4.5",
"vite": "^5.2.9"
I am going to paste the terminal error log. This is a bit more retrieving as the browser log:
1:35:47 PM [vite] Error when evaluating SSR module /src/routes/+page.svelte: failed to import "/src/lib/components/App.svelte"
|- TypeError: vite_ssr_import_2.default.install is not a function
at /node_modules/.pnpm/three-inspect@0.4.5_@types[email protected][email protected]/node_modules/three-inspect/dist/components/Internal/CameraControls.svelte:17:16
at async instantiateModule
TypeError: vite_ssr_import_2.default.install is not a function
at /node_modules/.pnpm/three-inspect@0.4.5_@types[email protected][email protected]/node_modules/three-inspect/dist/components/Internal/CameraControls.svelte:17:16
Actually looks to me very TS specific error. I am not using TS in my project. ..just wanted to mention.
The text was updated successfully, but these errors were encountered: