rival-black
rival-black3y ago

Hi all I have created a small app with

Hi all, I have created a small app with refine-nextjs template and added posts list page to pages as per the Mui tutorial. App works on dev, great. But, when I am trying to create production build using npm run build it is throwing errors: Build optimization failed: found page without a React Component as default export in pages/posts/list, Could anyone guide me how to produce a production build
1 Reply
absent-sapphire
absent-sapphire3y ago
I've not used NestJS, but you could try exporting your page components as default, for example: export const PostList -> export default const PostList

Did you find this page helpful?