Describe the bug
The editor fails to load in a minified production build of Next.js. I have tested and reproduced the bug with the latest version of Blocknote (v0.8.3), and with both app and page directory of Next.js.
To Reproduce
- Clone the following repository: https://github.com/dlwocks31/blocknote-webpack-err-report . This is a minimal Next.js example with Blocknote added as described in documentation.
- Execute
npm install && npm run build && npm run start to run the project.
- Navigate to
localhost:3000 to find the error message: TypeError: e.fn is not a function.
- To disable webpack minification, uncomment the following lines in
next.config.js:
// optimization: {
// minimize: false,
// }
- Rerun
npm run build && npm run start and revisit localhost:3000 to find the project running normally.
Miscellaneous
- Node version: v18.12.1
- Package manager: npm 9.7.1
- Browser: Chrome 115.0.5790.102
Describe the bug
The editor fails to load in a minified production build of Next.js. I have tested and reproduced the bug with the latest version of Blocknote (v0.8.3), and with both app and page directory of Next.js.
To Reproduce
npm install && npm run build && npm run startto run the project.localhost:3000to find the error message:TypeError: e.fn is not a function.next.config.js:npm run build && npm run startand revisitlocalhost:3000to find the project running normally.Miscellaneous