You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ next dev
▲ Next.js 14.0.3
- Local: http://localhost:3000
✓ Ready in 2.5s
○ Compiling / ...
✓ Compiled / in 2.3s (484 modules)
Warning: Only plain objects can be passed to Client Components from Server Components. Classes or other objects with methods are not supported.
<div className=... style={{--backgroundColor__1x1n9v70: "blue"}} children=...>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
○ Compiling /favicon.ico ...
✓ Compiled /favicon.ico in 1864ms (476 modules)
Validations
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Describe the bug
When using
assignInlineVars
function:React warns you about not being able to pass non plain objects between Server and Client components.
The problem is the object created by
assignInlineVars
has a.toString()
methodReproduction
https://github.com/atabel/next-vanilla-extract
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: