#problem when i am running build

5 messages · Page 1 of 1 (latest)

sour solstice
#

hey guys someone one know how can i fix this error?
all my components and pages are with export default its happening because of my dynamic article page.

Property 'default' is missing in type 'typeof import("C:/Users/app/(pages)/[category]/[subcategory]/[articleId]/page")' but required in type '{ default: Function; config?: {} | undefined; generateStaticParams?: Function | undefined; revalidate?: false | undefined; dynamic?: "auto" | "force-dynamic" | "error" | "force-static" | undefined; ... 6 more ...; generateMetadata?: Function | undefined; }'.

21 | generateMetadata?: Function
22 |
23 | }, TEntry, ''>>()
| ^
24 |
25 | // Check the prop type of the entry function
26 | checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>()

shadow etherBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

sour solstice
#

anyone?

vernal sable
#

Show the page.tsx code

sour solstice
# vernal sable Show the page.tsx code

never mind my friend i found the solution i had same component name and same type name that called article when in the export default Article; it represented the type and not the component because they had the same name, my bad 🙂