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+three@0.164.0_three@0.163.0/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+three@0.164.0_three@0.163.0/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.
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+three@0.164.0_three@0.163.0/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+three@0.164.0_three@0.163.0/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.