Next.js Discord

Discord Forum

Build error when use own page/layout types

Answered
Chien Français Blanc et Orange posted this in #help-forum
Open in Discord
Chien Français Blanc et OrangeOP
I created typescript types to make my experience better because I haven't found any types for pages or layouts in nextjs docs. Everything were ok locally, but now I try to build my project, and I keep getting an error as on screenshot. How can I fix it?
Answered by Chien Français Blanc et Orange
oh, it was an error because I had a property children in my BasePageProps interface...
View full answer

1 Reply

Chien Français Blanc et OrangeOP
oh, it was an error because I had a property children in my BasePageProps interface...
Answer