next react build error ignore

agnusdei·2024년 7월 5일
/** @type {import('next').NextConfig} */
const nextConfig = {
  typescript: {
    ignoreBuildErrors: true,
  },
  eslint: {
    ignoreDuringBuilds: true,
  },
};

module.exports = nextConfig;

에러 메시지 원문

pe error: Type 'OmitWithTag<typeof import("C:/workspace/apayou/apps/admin/src/app/(app)/(default)/admin/form/[id]/page"), "metadata" | "default" | "config" | "generateStaticParams" | "revalidate" | "dynamic" | ... 7 more ... | "generateViewport", "">' does not satisfy the constraint '{ [x: string]: never; }'.
Property 'AdminFormComponent' is incompatible with index signature.
Type '({ id }: IIdProp) => Element' 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
Warning: command "next build" exited with non-zero status code
——————————————————————————————————————————————————————————————————

NX Ran target build for project admin and 1 task(s) they depend
on (25s)

× 1/2 failed


profile
DevSecOps Pentest🚩

0개의 댓글