How to solve Warning: Only plain objects can be passed to Client Components from Server Components.
Answered
Md.Mohon posted this in #help-forum
Md.MohonOP
When I am run my next 14 app router app then show this warning in my vs code console. how to solve it? cause i am not use any plain objects but i see this error show from Image Component.
7 Replies
Polar bear
You are passing a module inside the image source. What does that Module contain?
And some of time import a local image and use this type
looks like
assets.images.newArrived.default will do the trickAnswer
if you don't want to do it (me neither), use
import instead of requirejust put the
import statements at the topMd.MohonOP
Ohh Thanks it's solved