Skip to content

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

@Specy

Description

@Specy

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions