TypeCellOS / BlockNote

A React Rich Text Editor that's block-based (Notion style) and extensible. Built on top of Prosemirror and Tiptap.
https://www.blocknotejs.org/
Mozilla Public License 2.0
5.91k stars 386 forks source link

getting blocknote compile error in sublime text 3 but not webpack #898

Open HenrikBechmann opened 4 days ago

HenrikBechmann commented 4 days ago

Describe the bug <what's going wrong!?> When I run build in sublime text 3, with nothing more than the following references to Blocknote...

import "@blocknote/core/fonts/inter.css";
import { useCreateBlockNote } from "@blocknote/react";
import { BlockNoteView } from "@blocknote/mantine";
import "@blocknote/mantine/style.css";

...I get the following error

../../../../node_modules/@blocknote/core/types/src/editor/BlockNoteTipTapEditor.d.ts(13,22): error TS2415: Class 'BlockNoteTipTapEditor' incorrectly extends base class 'Editor'.
  Property 'createView' is private in type 'Editor' but not in type 'BlockNoteTipTapEditor'.

However, compiling with webpack (dev) completes without error.

using

    "@blocknote/core": "^0.14.2",
    "@blocknote/mantine": "^0.14.2",
    "@blocknote/react": "^0.14.2",

and sublime text 3 build 4169 To Reproduce <clear steps to reproduce are super helpful! Best is to provide an online sandbox, click to create one>

Misc