Skip to content

[Bug?]: with-trpc is breaking - seroval issue #1092

Closed
@birkskyum

Description

@birkskyum

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

When starting the example, with Node 18, this is the result:

GET http://localhost:3000/
GET http://localhost:3000/api/trpc/example.hello?batch=1&input=%7B%220%22%3A%22World%22%7D
An unhandled error occured: Error: Cannot serialize function without reference ID.
    at Re (file:///Users/admin/repos/solid-start/node_modules/.pnpm/[email protected]/node_modules/seroval/dist/esm/production/index.mjs:3:30635)

Also note, the example uses an archived solid-trpc package.

Expected behavior 🤔

that the server starts

Steps to reproduce 🕹

Steps:

  1. checkout latest main in solid-start
  2. Use node 18
  3. pnpm i
  4. go to examples/with-trpc
  5. run pnpm run dev

Context 🔦

Might be related to other recent seroval issues:

Your environment 🌎

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions