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
It seems SSR in SvelteKit breaks vite-plugin-gltf, yielding an internal ReferenceError relating to an undefined location in a glb file. I'm not entirely sure if this is Vite related or SvelteKit related, but I thought this is a good place to start.
ReferenceError: location is not defined
at file:///home/ixxie/repos/sveltekit-gltf/.svelte-kit/output/server/entries/pages/_page.svelte.js:16468:55
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async Module.component (file:///home/ixxie/repos/sveltekit-gltf/.svelte-kit/output/server/nodes/2.js:4:39)
at async Promise.all (index 1)
at async render_response (file:///home/ixxie/repos/sveltekit-gltf/.svelte-kit/output/server/index.js:1206:19)
at async render_page (file:///home/ixxie/repos/sveltekit-gltf/.svelte-kit/output/server/index.js:1752:12)
at async resolve (file:///home/ixxie/repos/sveltekit-gltf/.svelte-kit/output/server/index.js:2436:22)
at async respond (file:///home/ixxie/repos/sveltekit-gltf/.svelte-kit/output/server/index.js:2327:22)
Describe the bug
It seems SSR in SvelteKit breaks vite-plugin-gltf, yielding an internal
ReferenceError
relating to an undefined location in aglb
file. I'm not entirely sure if this is Vite related or SvelteKit related, but I thought this is a good place to start.As requested by maintainers at
rd-bundler-3d-plugins
, a copy of the issue is filed there: nytimes/rd-bundler-3d-plugins#19Reproduction
Minimal reproduction is available in this repository.
Logs
System Info
Severity
annoyance
Additional Information
Relevant discussions:
getting started
section of README nytimes/rd-bundler-3d-plugins#17The text was updated successfully, but these errors were encountered: