Skip to content

bug: Cannot read properties of undefined (reading 'keyPrefix') #6988

@quanglam2807

Description

@quanglam2807

Provide environment information

  System:
    OS: macOS 26.0.1
    CPU: (10) arm64 Apple M2 Pro
    Memory: 107.19 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.17.1 - ~/.nvm/versions/node/v22.17.1/bin/node
    Yarn: 4.10.3 - ~/.nvm/versions/node/v22.17.1/bin/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v22.17.1/bin/npm
    bun: 1.2.23 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 141.0.7390.123
    Safari: 26.0.1

Describe the bug

After upgrading to trpc 11.7.0 from trpc 11.6.0, our Next.js app crashes on the client-side with errror:
Cannot read properties of undefined (reading 'keyPrefix')

Link to reproduction

N/A

To reproduce

Upgrading to trpc 11.7.0

Additional information

No response

👨‍👧‍👦 Contributing

  • 🙋‍♂️ Yes, I'd be down to file a PR fixing this bug!

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