toeverything / blocksuite

🧩 Content editing tech stack for the web - BlockSuite is a toolkit for building editors and collaborative applications.
https://blocksuite.io
Mozilla Public License 2.0
4.3k stars 386 forks source link

BlockSuiteError: val does not exist #7314

Open sentry-io[bot] opened 2 months ago

sentry-io[bot] commented 2 months ago

Sentry Issue: AFFINE-6A2

BlockSuiteError: val does not exist
  at new BlockSuiteError (webpack://@affine/web/../../../node_modules/@blocksuite/global/src/exceptions/index.ts:7:10)
  at assertExists (webpack://@affine/web/../../../node_modules/@blocksuite/global/src/utils/assert.ts:21:30)
  at <anonymous> (webpack://@affine/web/../../../node_modules/@blocksuite/blocks/src/surface-block/managers/connector-manager.ts:91:7)
  at forEach ([native code])
  at getAnchors (webpack://@affine/web/../../../node_modules/@blocksuite/blocks/src/surface-block/managers/connector-manager.ts:89:13)
...
(6 additional frame(s) were not displayed)
xmings commented 2 months ago

same question

xmings commented 2 months ago

the editor which instanced from PageEditor class throw this error when it's doc attribute is reassigned with a new doc object。but the editor instanced from AffineEditorContainer class does not encounter this issue.