I got below error when using braft-editor with next.js
the version braft-editor is "v2.3.9"
ReferenceError: window is not defined
at Object.<anonymous> (my_project/node_modules/braft-editor/dist/index.js:10:4)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
I got below error when using braft-editor with next.js
the version braft-editor is "v2.3.9"