cloudflare / cloudflare/workerd
Uncaught TypeError: The "superCtor.prototype" property must be of type object on `wrangler pages dev`
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
### Which Cloudflare product(s) does this pertain to?
Pages
### What versions & operating system are you using?
Wrangler v4.7.2, Node v20
### Please provide a link to a minimal reproduction
https://github.com/kyu-c/wrangler-repro
### Describe the Bug
After adding a dependency `@privy-io/react-auth`, `wrangler pages dev` fails with the below error:
```
⎔ Starting local server..
✘ [ERROR] service core:user:repro: Uncaught TypeError: The "superCtor.prototype" property must be of type object. Received undefined
at null. (node:util:80:15) in inherits
at null. (y47r2axn7v.js:61337:5) in .wrangler/tmp/pages-3PQkUN/chunks/nitro/nitro.mjs
at null. (y47r2axn7v.js:5:56) in __init
at null. (y47r2axn7v.js:78256:1)
```
### Please provide any relevant error logs
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.