BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

TypeError: Cannot read properties of null (reading 'useMemo') in next.js

Open TimPchelintsev opened this issue 1 year ago • 3 comments

Describe the bug Getting error TypeError: Cannot read properties of null (reading 'useMemo') on page load using latest next.js 14.2.3(pages router) and @blocknote/react 0.13.5, dynamic import same like in https://www.blocknotejs.org/docs/advanced/nextjs

Misc

  • Node version: 18.17.1
  • Package manager: yarn
  • Browser: Chrome

TimPchelintsev avatar Jun 05 '24 08:06 TimPchelintsev

Same problem

lequocbinh04 avatar Jul 01 '24 06:07 lequocbinh04

Do you have the same with the latest version of BlockNote?

YousefED avatar Jul 01 '24 08:07 YousefED

Same as me. I Think there is a problem using yarn, no errors using npm.

  • Node version: 20.11.0
  • Package manager: yarn
"@blocknote/core": "^0.14.5",
"@blocknote/mantine": "^0.14.6",
"@blocknote/react": "^0.14.6",

jerome-geek avatar Jul 10 '24 06:07 jerome-geek

solved after upgrade from 0.16 -> 0.19

Zonxpk avatar Nov 18 '24 10:11 Zonxpk