next js project build error
Answered
Siamese posted this in #help-forum
SiameseOP
Any one please help while building a project I am getting this error, nextjs version 14.2.1
Error:
Error occurred prerendering page "/refund-policy". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Error:
Error occurred prerendering page "/refund-policy". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Answered by Siamese
Hi @B33fb0n3 the problem is solved it was happened due to some mui icons.. I have removed them and replace with normal Image working fine now
4 Replies
@Siamese Any one please help while building a project I am getting this error, nextjs version 14.2.1
Error:
Error occurred prerendering page "/refund-policy". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
You tried all these fixes?
https://nextjs.org/docs/messages/prerender-error#possible-ways-to-fix-it
https://nextjs.org/docs/messages/prerender-error#possible-ways-to-fix-it
@Siamese ?
SiameseOP
Hi @B33fb0n3 the problem is solved it was happened due to some mui icons.. I have removed them and replace with normal Image working fine now
Answer