Getting build error while trying to deploy to vercel
I am submitting the errors from vercel deployment log:
11:11:18.593 @dub/ui:build: src/rich-text-area/rich-text-provider.tsx(125,7): error TS2769: No overload matches this call.
11:11:18.593 @dub/ui:build: Overload 1 of 2, '(options: Partial<EditorOptions> & { immediatelyRender?: boolean | undefined; shouldRerenderOnTransaction?: boolean | undefined; } & { immediatelyRender: false; }, deps?: DependencyList | undefined): Editor | null', gave the following error.
11:11:18.593 @dub/ui:build: Type '(Extension<...> | Extension<...> | Extension<...> | Node<...> | Extension<...> | Node<...>)[]' is not assignable to type 'AnyExtension[]'.
11:11:18.593 @dub/ui:build: Type 'Extension<...> | Extension<...> | Extension<...> | Node<...> | Extension<...> | Node<...>' is not assignable to type 'AnyExtension'.
11:11:18.593 @dub/ui:build: Type 'Extension<StarterKitOptions, any>' is not assignable to type 'Extendable<any, any, ExtensionConfig<any, any> | NodeConfig<any, any> | MarkConfig<any, any>>'.
11:11:18.593 @dub/ui:build: Types of property 'parent' are incompatible.
11:11:18.594 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...'.
11:11:18.594 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...'.
11:11:18.594 @dub/ui:build: Types of property 'config' are incompatible.
11:11:18.594 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").NodeConfig<any, any> | import("/vercel/path0/node_mod...' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").NodeConfig<any, any> | import("/vercel/path0/node_mod...'.
11:11:18.594 @dub/ui:build: Type 'ExtensionConfig<any, any>' is not assignable to type 'ExtensionConfig<any, any> | NodeConfig<any, any> | MarkConfig<any, any>'.
11:11:18.594 @dub/ui:build: Type 'ExtensionConfig<any, any>' is not assignable to type 'MarkConfig<any, any>'.
11:11:18.594 @dub/ui:build: Types of property 'addGlobalAttributes' are incompatible.
11:11:18.594 @dub/ui:build: Type '((this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")...' is not assignable to type '((this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")...'.
11:11:18.594 @dub/ui:build: Type '(this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")....' is not assignable to type '(this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")....'.
11:11:18.594 @dub/ui:build: The 'this' types of each signature are incompatible.
11:11:18.594 @dub/ui:build: Type '{ name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<.....' is not assignable to type '{ name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<.....'.
11:11:18.594 @dub/ui:build: Types of property 'extensions' are incompatible.
11:11:18.595 @dub/ui:build: Type '(import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>)[]' is not assignable to type '(import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>)[]'.
11:11:18.595 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>'.
11:11:18.595 @dub/ui:build: Type 'Node<any, any>' is not assignable to type 'Node<any, any> | Mark<any, any>'.
11:11:18.595 @dub/ui:build: Type 'Node<any, any>' is not assignable to type 'Mark<any, any>'.
11:11:18.595 @dub/ui:build: The types of 'extend(...).parent' are incompatible between these types.
11:11:18.595 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...'.
11:11:18.595 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...'.
11:11:18.595 @dub/ui:build: Types of property 'config' are incompatible.
11:11:18.595 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").NodeConfig<any, any> | import("/vercel/path0/node_mod...' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").NodeConfig<any, any> | import("/vercel/path0/node_mod...'.
11:11:18.595 @dub/ui:build: Type 'ExtensionConfig<any, any>' is not assignable to type 'ExtensionConfig<any, any> | NodeConfig<any, any> | MarkConfig<any, any>'.
11:11:18.595 @dub/ui:build: Type 'ExtensionConfig<any, any>' is not assignable to type 'MarkConfig<any, any>'.
11:11:18.595 @dub/ui:build: Types of property 'addGlobalAttributes' are incompatible.
11:11:18.595 @dub/ui:build: Type '((this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")...' is not assignable to type '((this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")...'.
11:11:18.595 @dub/ui:build: Type '(this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")....' is not assignable to type '(this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")....'.
11:11:18.595 @dub/ui:build: The 'this' types of each signature are incompatible.
11:11:18.595 @dub/ui:build: Type '{ name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<.....' is not assignable to type '{ name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<.....'.
11:11:18.595 @dub/ui:build: Types of property 'extensions' are incompatible.
11:11:18.595 @dub/ui:build: Type '(import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>)[]' is not assignable to type '(import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>)[]'.
11:11:18.595 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>'.
11:11:18.596 @dub/ui:build: Type 'Node<any, any>' is not assignable to type 'Node<any, any> | Mark<any, any>'.
11:11:18.596 @dub/ui:build: Type 'Node<any, any>' is not assignable to type 'Mark<any, any>'.
11:11:18.596 @dub/ui:build: The types of 'extend(...).config.group' are incompatible between these types.
11:11:18.596 @dub/ui:build: Type 'string | ((this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined) | undefined' is not assignable to type 'string | ((this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined) | undefined'.
11:11:18.596 @dub/ui:build: Type '(this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: Editor | undefined; }) => string | undefined' is not assignable to type 'string | ((this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: Editor | undefined; }) => string | undefined) | undefined'.
11:11:18.596 @dub/ui:build: Type '(this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined' is not assignable to type '(this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined'.
11:11:18.596 @dub/ui:build: The 'this' types of each signature are incompatible.
11:11:18.596 @dub/ui:build: Type '{ name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ((this: ...) => string | undefined) | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }' is not assignable to type '{ name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ((this: ...) => string | undefined) | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }'.
11:11:18.596 @dub/ui:build: Types of property 'parent' are incompatible.
11:11:18.596 @dub/ui:build: Type 'string | ((this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined) | undefined' is not assignable to type 'string | ((this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined) | undefined'.
11:11:18.596 @dub/ui:build: Type '(this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: Editor | undefined; }) => string | undefined' is not assignable to type 'string | ((this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: Editor | undefined; }) => string | undefined) | undefined'.
11:11:18.596 @dub/ui:build: Type '(this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined' is not assignable to type '(this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined'.
11:11:18.596 @dub/ui:build: The 'this' types of each signature are incompatible.
11:11:18.596 @dub/ui:build: Type '{ name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ((this: ...) => string | undefined) | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }' is not assignable to type '{ name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ((this: ...) => string | undefined) | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }'.
11:11:18.596 @dub/ui:build: Types of property 'editor' are incompatible.
11:11:18.596 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined'.
11:11:18.596 @dub/ui:build: Property 'getMarkdown' is missing in type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor' but required in type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor'.
11:11:18.596 @dub/ui:build: Overload 2 of 2, '(options: UseEditorOptions, deps?: DependencyList | undefined): Editor', gave the following error.
11:11:18.596 @dub/ui:build: Type '(Extension<...> | Extension<...> | Extension<...> | Node<...> | Extension<...> | Node<...>)[]' is not assignable to type 'AnyExtension[]'.
11:11:18.597 @dub/ui:build: Type 'Extension<...> | Extension<...> | Extension<...> | Node<...> | Extension<...> | Node<...>' is not assignable to type 'AnyExtension'.
11:11:18.597 @dub/ui:build: Type 'Extension<StarterKitOptions, any>' is not assignable to type 'Extendable<any, any, ExtensionConfig<any, any> | NodeConfig<any, any> | MarkConfig<any, any>>'.
11:11:18.597 @dub/ui:build: Types of property 'parent' are incompatible.
11:11:18.597 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...'.
11:11:18.597 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...'.
11:11:18.597 @dub/ui:build: Types of property 'config' are incompatible.
11:11:18.597 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").NodeConfig<any, any> | import("/vercel/path0/node_mod...' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").NodeConfig<any, any> | import("/vercel/path0/node_mod...'.
11:11:18.597 @dub/ui:build: Type 'ExtensionConfig<any, any>' is not assignable to type 'ExtensionConfig<any, any> | NodeConfig<any, any> | MarkConfig<any, any>'.
11:11:18.597 @dub/ui:build: Type 'ExtensionConfig<any, any>' is not assignable to type 'MarkConfig<any, any>'.
11:11:18.597 @dub/ui:build: Types of property 'addGlobalAttributes' are incompatible.
11:11:18.597 @dub/ui:build: Type '((this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")...' is not assignable to type '((this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")...'.
11:11:18.597 @dub/ui:build: Type '(this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")....' is not assignable to type '(this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")....'.
11:11:18.597 @dub/ui:build: The 'this' types of each signature are incompatible.
11:11:18.597 @dub/ui:build: Type '{ name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<.....' is not assignable to type '{ name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<.....'.
11:11:18.597 @dub/ui:build: Types of property 'extensions' are incompatible.
11:11:18.597 @dub/ui:build: Type '(import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>)[]' is not assignable to type '(import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>)[]'.
11:11:18.597 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>'.
11:11:18.597 @dub/ui:build: Type 'Node<any, any>' is not assignable to type 'Node<any, any> | Mark<any, any>'.
11:11:18.597 @dub/ui:build: Type 'Node<any, any>' is not assignable to type 'Mark<any, any>'.
11:11:18.598 @dub/ui:build: The types of 'extend(...).parent' are incompatible between these types.
11:11:18.598 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...'.
11:11:18.598 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Extendable<any, any, import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modul...'.
11:11:18.598 @dub/ui:build: Types of property 'config' are incompatible.
11:11:18.598 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").NodeConfig<any, any> | import("/vercel/path0/node_mod...' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").ExtensionConfig<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").NodeConfig<any, any> | import("/vercel/path0/node_mod...'.
11:11:18.598 @dub/ui:build: Type 'ExtensionConfig<any, any>' is not assignable to type 'ExtensionConfig<any, any> | NodeConfig<any, any> | MarkConfig<any, any>'.
11:11:18.598 @dub/ui:build: Type 'ExtensionConfig<any, any>' is not assignable to type 'MarkConfig<any, any>'.
11:11:18.598 @dub/ui:build: Types of property 'addGlobalAttributes' are incompatible.
11:11:18.598 @dub/ui:build: Type '((this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")...' is not assignable to type '((this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")...'.
11:11:18.598 @dub/ui:build: Type '(this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")....' is not assignable to type '(this: { name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index")....'.
11:11:18.598 @dub/ui:build: The 'this' types of each signature are incompatible.
11:11:18.598 @dub/ui:build: Type '{ name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<.....' is not assignable to type '{ name: string; options: any; storage: any; extensions: (import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<.....'.
11:11:18.598 @dub/ui:build: Types of property 'extensions' are incompatible.
11:11:18.598 @dub/ui:build: Type '(import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>)[]' is not assignable to type '(import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>)[]'.
11:11:18.598 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Node<any, any> | import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Mark<any, any>'.
11:11:18.598 @dub/ui:build: Type 'Node<any, any>' is not assignable to type 'Node<any, any> | Mark<any, any>'.
11:11:18.598 @dub/ui:build: Type 'Node<any, any>' is not assignable to type 'Mark<any, any>'.
11:11:18.598 @dub/ui:build: The types of 'extend(...).config.group' are incompatible between these types.
11:11:18.599 @dub/ui:build: Type 'string | ((this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined) | undefined' is not assignable to type 'string | ((this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined) | undefined'.
11:11:18.599 @dub/ui:build: Type '(this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: Editor | undefined; }) => string | undefined' is not assignable to type 'string | ((this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: Editor | undefined; }) => string | undefined) | undefined'.
11:11:18.599 @dub/ui:build: Type '(this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined' is not assignable to type '(this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined'.
11:11:18.599 @dub/ui:build: The 'this' types of each signature are incompatible.
11:11:18.599 @dub/ui:build: Type '{ name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ((this: ...) => string | undefined) | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }' is not assignable to type '{ name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ((this: ...) => string | undefined) | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }'.
11:11:18.599 @dub/ui:build: Types of property 'parent' are incompatible.
11:11:18.599 @dub/ui:build: Type 'string | ((this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined) | undefined' is not assignable to type 'string | ((this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined) | undefined'.
11:11:18.599 @dub/ui:build: Type '(this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: Editor | undefined; }) => string | undefined' is not assignable to type 'string | ((this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: Editor | undefined; }) => string | undefined) | undefined'.
11:11:18.599 @dub/ui:build: Type '(this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined' is not assignable to type '(this: { name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ... | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }) => string | undefined'.
11:11:18.599 @dub/ui:build: The 'this' types of each signature are incompatible.
11:11:18.599 @dub/ui:build: Type '{ name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ((this: ...) => string | undefined) | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }' is not assignable to type '{ name: string; options: ExtendedOptions; storage: ExtendedStorage; parent: string | ((this: ...) => string | undefined) | undefined; editor?: import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined; }'.
11:11:18.599 @dub/ui:build: Types of property 'editor' are incompatible.
11:11:18.599 @dub/ui:build: Type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined' is not assignable to type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor | undefined'.
11:11:18.599 @dub/ui:build: Property 'getMarkdown' is missing in type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor' but required in type 'import("/vercel/path0/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@tiptap/core/dist/index").Editor'.
11:11:18.599 @dub/ui:build:
11:11:18.618 @dub/ui:build: Error: error occured in dts build
11:11:18.618 @dub/ui:build: at Worker.
Got the same error when trying to setup the project locally, following the local development guide.
The error comes from multiple files. I have the same TypeScript errors popping in my IDE, this is not a build-only issue.
rich-text-toolbar.tsx
This file has 4 type errors:
src/rich-text-area/rich-text-toolbar.tsx(56,50): error TS2551: Property 'toggleBold' does not exist on type 'ChainedCommands'. Did you mean 'toggleNode'?
src/rich-text-area/rich-text-toolbar.tsx(64,50): error TS2339: Property 'toggleItalic' does not exist on type 'ChainedCommands'.
src/rich-text-area/rich-text-toolbar.tsx(74,39): error TS2339: Property 'toggleHeading' does not exist on type 'ChainedCommands'.
src/rich-text-area/rich-text-toolbar.tsx(82,39): error TS2339: Property 'toggleHeading' does not exist on type 'ChainedCommands'.
https://github.com/dubinc/dub/blob/9f53e64ec314691f0d1614aa0906658ba4659590/packages/ui/src/rich-text-area/rich-text-toolbar.tsx#L51-L86
rich-text-provider.tsx
This file has only one type error:
src/rich-text-area/rich-text-provider.tsx(126,7): error TS2769: No overload matches this call.
It comes from the extensions defined, looks like an extension doesn't match the expected input from TipTap.
https://github.com/dubinc/dub/blob/9f53e64ec314691f0d1614aa0906658ba4659590/packages/ui/src/rich-text-area/rich-text-provider.tsx#L123-L131
We just merged two PRs that upgrade Zod (v4) and the Tiptap packages. Can you try again locally and let me know if you still hit the error?
Thanks for getting back @devkiran.
After pulling the recent commits from main, running pnpm i then pnpm -r --filter "./packages/**" build, I can confirm there aren't any error related to the build process.