bug: `hooks.js` init moved to `Server.init` causes reading `handleError` of null
pham opened this issue · comments
Paul Phạm commented
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
- Bump
@sveltejs/kit
to version1.0.0-next.433
- Build and run emulators
- 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