You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot destructure property 'text' of 'anchorBlock' as it is null.
at ContentState2.getMuyaIndexCursor (file:///Applications/marktext%202.app/Contents/Resources/app.asar/out/renderer/assets/index-CDtNiKJ8.js:144078:19)
at Muya.dispatchChange (file:///Applications/marktext%202.app/Contents/Resources/app.asar/out/renderer/assets/index-CDtNiKJ8.js:145884:47)
at file:///Applications/marktext%202.app/Contents/Resources/app.asar/out/renderer/assets/index-CDtNiKJ8.js:145240:21
Version
MarkText: v0.18.4
Operating system: Darwin arm64 25.2.0 (darwin)
Closing — this was fixed during the electron-vite refactor (commit 85607dd).
The guard at src/muya/lib/utils/importMarkdown.js:464-467 short-circuits when anchorBlock or focusBlock is null:
if(!anchorBlock||!focusBlock){console.warn('Can not find anchor block or focus block in getMuyaIndexCursor')returnnull}
The destructuring statement that crashed in your stack trace can no longer execute with a null operand. General-editor regression coverage was also expanded in #4268.
If you still hit this crash on a 0.18.5+ build, please reopen with the exact version and steps.
Activity
Jocs commentedon May 23, 2026
Closing — this was fixed during the electron-vite refactor (commit 85607dd).
The guard at
src/muya/lib/utils/importMarkdown.js:464-467short-circuits whenanchorBlockorfocusBlockis null:The destructuring statement that crashed in your stack trace can no longer execute with a null operand. General-editor regression coverage was also expanded in #4268.
If you still hit this crash on a 0.18.5+ build, please reopen with the exact version and steps.