- wait compiling /favicon.ico/route (client and server)...
- event compiled successfully in 33 ms (292 modules)
- error node_modules\next\dist\compiled\react-server-dom-webpack\cjs\react-server-dom-webpack-server.edge.development.js (1910:12) @ resolveModelToJSON
- error Error: Event handlers cannot be passed to Client Component props.
<button onClick={function} className=... children=...>
^^^^^^^^^^
If you need interactivity, consider converting part of this to a Client Component.
at stringify (<anonymous>)
null
- error node_modules\next\dist\compiled\react-server-dom-webpack\cjs\react-server-dom-webpack-server.edge.development.js (1910:12) @ resolveModelToJSON
- error Error: Event handlers cannot be passed to Client Component props.
<button onClick={function} className=... children=...>
^^^^^^^^^^
If you need interactivity, consider converting part of this to a Client Component.
at stringify (<anonymous>)
digest: "3338950040"
null
from this code :
<button onClick={() => console.log("hi")} className="py-3 px-32 bg-secondary rounded-xl font-bold text-2xl text-primary">
Website
</button>