-
-
Notifications
You must be signed in to change notification settings - Fork 555
Error [ERR_REQUIRE_ESM]: require() of ES Module while using NX monorepo #241
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
Comments
I am not sure whether to list this as a bug since it happens specifically with NX. |
I'm also facing the same issue, is there a good way to fix/avoid this? I added this to my next.config.js which fixed the issue but I don't think this is a good idea for the long term: Also, this still doesn't allow me to make a build. |
This should be addressed here! #274 Let me know if you're still running into this issue |
Hello everyone, I'm having the same issue and i dont really understand the solution, someone can give me a little bit more of explanation? My error is similar but not exactly the same:
|
Are you using the latest version of blocknote @Ianduha13 ? |
@Ianduha13 If you are on NextJS, please see this: https://www.blocknotejs.org/docs/nextjs The issue was server side rendering: #274 |
Describe the bug

Error on compile while using NX mono-repo
This issue does not happen with a vanilla NextJS app. However, it happens on NX Monorepo
To Reproduce
Install NX
Create a new app:
nx g @nx/next:app my-app
Install BLocknote:
npm i @blocknote/react
Add the code to index.tsx of your app
Misc
The text was updated successfully, but these errors were encountered: