Closed Ark07 closed 6 days ago
Hmm this might be a pain to diagnose and fix, especially since it's more likely a bundling issue than something specific to BlockNote. That being said, could you try updating your BlockNote version to 0.14.1 and see if the problem is still there?
hi @matthewlipski @YousefED, 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
Describe the bug
I was trying to integrate rich text editor , and came across this amazing package Blocknote , reduces more than half of the work required with tip tap
But When i added webpack 5 to my application It started giving below error
TypeError: use_prefers_color_scheme__WEBPACK_IMPORTED_MODULE_2__ is not a function
Package.json
webpack.config
Related issue maybe ? https://github.com/devforth/painterro/issues/123 , https://github.com/webpack/webpack/issues/12675
Thank you in advance for your help!