cloudflare / cloudflare/vinext

Only plain objects, and a few built-ins, can be passed to Client Components from Server Components

Open
#237 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
8.8k
Forks
406
Avg merge
2d 6h
Merged PRs (30d)
120

Description

Hello, i'm trying to use vinext to replace next 16.1.6, my current next project works without giving me the error, but as soon as i use vinext this issue pops up

```js
Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.
[..., Module, Null, ..., ..., [], 1]
^^^^^^
at resolveErrorDev (C:\Users\specy\Desktop\progetti\discerns\client\node_modules\.vite\deps_ssr\react-server-dom-webpack_client__edge.js:4022:148)
at processFullBinaryRow (C:\Users\specy\Desktop\progetti\discerns\client\node_modules\.vite\deps_ssr\react-server-dom-webpack_client__edge.js:4813:29)
at progress (C:\Users\specy\Desktop\progetti\discerns\client\node_modules\.vite\deps_ssr\react-server-dom-webpack_client__edge.js:5009:20)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
```

I'm aware that i cannot pass Class instances etc to the server-client boundary, but i don't seem to be passing any (as i recall at least). I cannot debug further as the application is quite large and the error does not give any context of what file might be causing it.

Using next 16.1.6 i don't have this error

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.