Next.js Discord

Discord Forum

error while trying to run build

Answered
HOTCONQUEROR posted this in #help-forum
Open in Discord
Any idea why does this happen when i run npm run build ?

Thanks in advance.
Answered by @ts-ignore
yeah then that is the error, either export a default component from that file or delete that file
View full answer

6 Replies

@@ts-ignore show the code of `[username]/page.tsx`
not implemented yet, it is empty.
i am just preparing the routes structure, and i have 1 page being built (signup route)
yeah then that is the error, either export a default component from that file or delete that file
Answer
@@ts-ignore yeah then that is the error, either export a default component from that file or delete that file
so i have to do that with all routes, i will just create empty components i guess.
yeah