jthegedus / svelte-adapter-firebase

SvelteKit adapter for Firebase Hosting rewrites to Cloud Functions for a Svelte SSR experience

Home Page:https://github.com/jthegedus/svelte-adapter-firebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: `hooks.js` init moved to `Server.init` causes reading `handleError` of null

pham opened this issue · comments

Describe the Bug

SvelteKit 1.0.0-next.433 moved hooks.js init from Server.respond to Server.init (sveltejs/kit#6179) causes Firebase function to throw a TypeError:

⚠  functions: TypeError: Cannot read properties of null (reading 'handleError')
    at Object.handle_error (/proj/a/functions/ssr/index.js:57764:28)
    at respond (/proj/a/functions/ssr/index.js:57696:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Steps to Reproduce

  1. Bump @sveltejs/kit to version 1.0.0-next.433
  2. Build and run emulators
  3. Page breaks

Expected Behaviour

Should load up the page normally.

svelte-adapter-firebase version

0.14.2

sveltejs/kit version

1.0.0-next.443