Closed conr closed 3 months ago
I worked around this for now by wrapping a new custom component:
import { BlockNoteEditor } from "@blocknote/core";
import { BlockNoteView } from "@blocknote/mantine";
import React, { HTMLAttributes } from "react";
export type BlockNoteViewProps = {
editor: BlockNoteEditor;
editable?: boolean;
onSelectionChange?: () => void;
onChange?: () => void;
theme?: "light" | "dark";
formattingToolbar?: boolean;
linkToolbar?: boolean;
sideMenu?: boolean;
slashMenu?: boolean;
filePanel?: boolean;
tableHandles?: boolean;
children?: React.ReactNode;
} & HTMLAttributes<HTMLDivElement>;
export const Editor: React.FC<BlockNoteViewProps> = (props) => (
<BlockNoteView {...props} />
);
I can't seem to reproduce this. Are you able to create a stackblitz where this issue occurs?
Closing this, lmk if it still occurs @conr
Describe the bug
Following the quickstart guide for BlockNote, I'm getting the following TypeScript errors stating that props like editor are not valid props for the
BlockNoteView
component (see screenshots attached).I have installed
@blocknote/core
,@blocknote/react
, and@blocknote/mantine
versions0.13.4
.I originally posted this in the Discord, and another user reported the same issue.
To Reproduce
Misc
v20.13.1