Next.js Discord

Discord Forum

Random Error Found

Unanswered
Paul posted this in #help-forum
Open in Discord
So theres an error in my nextjs project using aceternity. However I believe the error is completely unrelated. This is on npm run build. Here's the error,

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
   Linting and checking validity of types  .Failed to compile.

.next/types/app/page.ts:8:13
Type error: Type 'OmitWithTag<typeof import("C:/Users/Owner/Documents/Portfolio/src/app/page"), "metadata" | "default" | "config" | "generateStaticParams" | "revalidate" | "dynamic" | "dynamicParams" | "fetchCache" | ... 5 more ... | "generateViewport", "">' does not satisfy the constraint '{ [x: string]: never; }'.
  Property 'projects' is incompatible with index signature.
    Type '{ title: string; description: string; link: string; }[]' is not assignable to type 'never'.

   6 |
   7 | // Check that the entry is a valid entry
>  8 | checkFields<Diff<{
     |             ^
   9 |   default: Function
  10 |   config?: {}
  11 |   generateStaticParams?: Function


and the error location the whole field is an error for no reason.

0 Replies