#Undescriptive Error when building release version with SvelteKit

5 messages · Page 1 of 1 (latest)

gleaming coral
#

Hi 🙂

I’ve got the problem then when trying to build the production version of my Tauri × SvelteKit App I get this really weird error. Dev mode works without problems.

 deno task build
Task build vite build
vite v6.3.5 building SSR bundle for production...
✓ 843 modules transformed.
error: Uncaught (in worker "") (in promise) TypeError: Module not found "…/output/server/nodes/0.js".
    at async Promise.all (index 0)
    at async analyse (…/node_modules/.deno/@[email protected]/node_modules/@sveltejs/kit/src/core/postbuild/analyse.js:86:16)
    at async …/node_modules/.deno/@[email protected]/node_modules/@sveltejs/kit/src/utils/fork.js:23:16
error: Uncaught (in promise) Error: Unhandled error. ([Object: null prototype] {
  message: 'Uncaught (in promise) TypeError: Module not found "…/.svelte-kit/output/server/nodes/0.js".',
  fileName: '…/node_modules/.deno/@[email protected]/node_modules/@sveltejs/kit/src/core/postbuild/analyse.js',
  lineNumber: 86,
  columnNumber: 16
})
    at NodeWorker.emit (ext:deno_node/_events.mjs:381:17)
    at NodeWorker.#handleError (node:worker_threads:118:10)
    at NodeWorker.#pollControl (node:worker_threads:138:30)
    at eventLoopTick (ext:core/01_core.js:177:7)

If anyone is able to at least help me debug this, i’d be super grateful! I honestly don’t even know how to proceed here

https://github.com/wovendesign/meeting-summariser

GitHub

Contribute to wovendesign/meeting-summariser development by creating an account on GitHub.

crisp sail
#

I don't know your front stack, but I think you might want to disable SSR

gleaming coral
#

Yeah, all the config files are Tauri-generated though, and it seems like SSR is disabled. Although it obviously isn’t …

I’m using SvelteKit

undone wadi
#

Hi, SSR seems to be configured correctly for your app, however I think the error is related to using the dynamic route at /meeting/[id],

error: Uncaught (in worker "") (in promise) Error: The following routes were marked as prerenderable, but were not prerendered because they were not found while crawling your app:
  - /meeting/[id]

See https://svelte.dev/docs/kit/page-options#prerender-troubleshooting for info on how to solve this

When I tried to build your app with deno run tauri build

gleaming coral
#

Nice, that error is way more descriptive. Why am I getting a different one 😄