Migrate to Next 15 causing issues
Unanswered
Beveren posted this in #help-forum
BeverenOP
so I migrated my code to Next 15 and am gettting the problem DataCloneError ()=>null could not be cloned. I'm not sure how to fix this problem I have changed all my ()=>null to function(){return null} even tried commenting out all the arrow functions that have " ()=>null" but still get that error not sure what to do.
10 Replies
@Jerico Aragon () => {} or () => void
BeverenOP
why do I ahve to look for those as well
or like why would those be the issue?
the issue isn’t your
()=>null
syntax — it’s that any function (arrow or normal) cannot cross server–client or worker boundaries.and I checked getStaticProps
but the props returned are serelizable
I don't know what else could be threason
like the props being returned are not functions or anything
BeverenOP
like I commented it out and just returned empty objects but still same error