Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ark07 opened this issue Jun 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Ark07
Copy link
Contributor

Ark07 commented Jun 27, 2024

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 #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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant