SuperJson version 12 and above does not work with Custom Error example
- Dominant language
- TypeScript
- Stars
- 14.1k
- Forks
- 803
- PR merge metrics
- No merged PRs in 30d
Description
### What is the problem?
Specifically the instanceof method in the client does not work.
Note: my typescript 5.2-beta is not the problem i tested it with ts 4 and 5 stable
### Paste all your error logs here:
```
No logs
```
### Paste all relevant code snippets here:
```
```
### What are detailed steps to reproduce this?
1. Install superjson >= v12
### Run `blitz -v` and paste the output here:
```
Blitz version: 2.0.0-beta.31 (local)
Linux 5.15 | linux-x64 | Node: v18.16.1
Package manager: pnpm
System:
OS: Linux 5.15 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
CPU: (12) x64 Common KVM processor
Memory: 24.27 GB / 31.34 GB
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 18.16.1 - ~/.local/state/fnm_multishells/80742_1690961121414/bin/node
Yarn: 1.22.19 - ~/.local/state/fnm_multishells/80742_1690961121414/bin/yarn
npm: 9.5.1 - ~/.local/state/fnm_multishells/80742_1690961121414/bin/npm
npmPackages:
@blitzjs/auth: 2.0.0-beta.31 => 2.0.0-beta.31
@blitzjs/next: 2.0.0-beta.31 => 2.0.0-beta.31
@blitzjs/rpc: 2.0.0-beta.31 => 2.0.0-beta.31
@prisma/client: ^5.0.0 => 5.0.0
blitz: 2.0.0-beta.31 => 2.0.0-beta.31
next: ^13.4.12 => 13.4.12
prisma: ^5.0.0 => 5.0.0
react: ^18.2.0 => 18.2.0
react-dom: ^18.2.0 => 18.2.0
typescript: 5.2.0-beta => 5.2.0-beta
```
### Please include below any other applicable logs and screenshots that show your problem:
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.