automate-sales / automate-commerce

next js ecommerce
MIT License
0 stars 0 forks source link

Fix server error #98

Open gkpty opened 2 months ago

gkpty commented 2 months ago

this error is appearing in most pages and it appears both in server and client. Debug and detect and fix where the error is produced. probably JSX or some complex type is being passed from the server to the client somewhere in props.

Internal error: Error: Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.
    at eF (/Users/gabrielk/Desktop/automate-commerce/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:270471)
    at eq (/Users/gabrielk/Desktop/automate-commerce/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:274685)
    at eJ (/Users/gabrielk/Desktop/automate-commerce/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:275302)
    at Timeout._onTimeout (/Users/gabrielk/Desktop/automate-commerce/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:265089)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
digest: "4025570897"