My errors

📅 2022-09-30T15:53:06.905Z
👁️ 94 katselukertaa
🔓 Julkinen


Roys-MacBook-Pro:pastebinUI roy$ npm run build

> mantine-next-template@1.0.0 build
> next build

info  - Linting and checking validity of types .Failed to compile.

./pages/index.tsx:14:3
Type error: Argument of type '() => Promise<ComponentClass<never, any> | FunctionComponent<never> | { default: ComponentType<never>; } | ForwardRefExoticComponent<TextareaCodeEditorProps & RefAttributes<...>>>' is not assignable to parameter of type 'DynamicOptions<{}> | Loader<{}>'.
  Type '() => Promise<ComponentClass<never, any> | FunctionComponent<never> | { default: ComponentType<never>; } | ForwardRefExoticComponent<TextareaCodeEditorProps & RefAttributes<...>>>' is not assignable to type '() => LoaderComponent<{}>'.
    Type 'Promise<ComponentClass<never, any> | FunctionComponent<never> | { default: ComponentType<never>; } | ForwardRefExoticComponent<TextareaCodeEditorProps & RefAttributes<...>>>' is not assignable to type 'LoaderComponent<{}>'.
      Type 'ComponentClass<never, any> | FunctionComponent<never> | { default: ComponentType<never>; } | ForwardRefExoticComponent<TextareaCodeEditorProps & RefAttributes<...>>' is not assignable to type 'ComponentType<{}> | { default: ComponentType<{}>; }'.
        Type 'ComponentClass<never, any>' is not assignable to type 'ComponentType<{}> | { default: ComponentType<{}>; }'.
          Type 'ComponentClass<never, any>' is not assignable to type 'ComponentClass<{}, any>'.
            Types of property 'getDerivedStateFromProps' are incompatible.
              Type 'GetDerivedStateFromProps<never, any> | undefined' is not assignable to type 'GetDerivedStateFromProps<{}, any> | undefined'.
                Type 'GetDerivedStateFromProps<never, any>' is not assignable to type 'GetDerivedStateFromProps<{}, any>'.
                  Types of parameters 'nextProps' and 'nextProps' are incompatible.
                    Type 'Readonly<{}>' is not assignable to type 'never'.

  12 | 
  13 | const CodeEditor = dynamic(
> 14 |   () => import('@uiw/react-textarea-code-editor').then((mod) => mod.default),
     |   ^
  15 |   { ssr: false }
  16 | );
  17 | 

> Build error occurred
Error: Call retries were exceeded
    at ChildProcessWorker.initialize (/Users/roy/Desktop/pastebin/pastebinUI/node_modules/next/dist/compiled/jest-worker/index.js:1:11661)
    at ChildProcessWorker._onExit (/Users/roy/Desktop/pastebin/pastebinUI/node_modules/next/dist/compiled/jest-worker/index.js:1:12599)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12) {
  type: 'WorkerError'
}