Skip to content

Vercel edge functions producing a null error from @sveltejs/kit next.433 #6308

Closed
@SG60

Description

@SG60

Describe the bug

@sveltejs/kit next.433 (this PR: #6179) seems to have introduced a bug with Vercel edge functions. The edge functions consistently crash

Reproduction

  1. kit 433 with Vercel edge functions: https://github.com/SG60/kit-433-error/tree/36670af2556b9b832b4b7fc47be807a7bc120e0d
    this has an error
  2. kit 433 without edge functions: https://github.com/SG60/kit-433-error/tree/b2e212d73dd297ac54fece7ec8e834657b9967dc
    this works
  3. kit downgraded to 432 with Vercel edge functions: https://github.com/SG60/kit-433-error/tree/c02648f00e9d9812b4dfdaa74a00cab0f93c930e
    this works

Logs

(These are from Vercel's function logs)

TypeError: Cannot read properties of null (reading 'handleError')
    at ../../../../.svelte-kit/output/server/index.js:2455:27
    at ../../../../.svelte-kit/output/server/index.js:2404:12

[GET] / reason=EDGE_FUNCTION_INVOCATION_FAILED, status=500, user_error=true

System Info

Vercel

Severity

blocking an upgrade

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions