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.89k stars 381 forks source link

Duplicate : #860 TypeError: use_prefers_color_scheme__WEBPACK_IMPORTED_MODULE_2__ is not a function #873

Open Ark07 opened 5 days ago

Ark07 commented 5 days ago

Describe the bug #860

Hi @matthewlipski @YousefED , I have created a duplicated ticket just for tracking as the previous #860 is closed

thank you for taking time to check the issue I have updated BlockNote version to 0.14.1 , the issue still exists when used with webpack version 5

please find below PR for webpack 5 issue fix https://github.com/TypeCellOS/BlockNote/pull/872

use-prefers-color-scheme gives default as well as named exports , using named exports resolves the webpack 5 issue and it works perfectly fine otherwise as well

export declare const usePrefersColorScheme: () => "dark" | "light" | "no-preference";
export default usePrefersColorScheme;
//# sourceMappingURL=index.d.ts.map