question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot resolve a Slate point from DOM point

See original GitHub issue

Do you want to request a feature or report a bug?

bug

Reproduce

Screencast-2020-10-06-173928

See sandbox: https://codesandbox.io/s/youthful-boyd-z3l36

What’s the current behavior?

Tested on Firefox and Chrome, the error only appears in Firefox From getting started guide, I set up as the docs. When typed something, some characters of the text was missing When pressed enter or backspace, nothing happened The browser console logged this:

Error: Cannot resolve a Slate point from DOM point
...

Slate: 0.59.0 Browser: Firefox 80 OS: Ubuntu 20.04

What’s the expected behavior?

Works as Chrome

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

3reactions
karlsheacommented, Jan 1, 2021

I think I figured this out: SlateDocument cannot be empty.

If I initialize it with this it works:

[
  {
    children: [
      {
        type: 'paragraph',
        children: [{ text: '' }],
      },
    ],
  },
]
2reactions
souljusecommented, Jul 27, 2021

I have the same issue, and I can reproduce on @karlshea’s sandbox

It happens randomly when I type a special character, or a list of special characters, both on Firefox 90.0 (64-bit) and Chrome Version 91.0.4472.164 (Official Build) (x86_64)

2021-07-27 16 43 47

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Cannot resolve a Slate point from DOM point" for non ...
When selecting (supposed to be) non-editable text that is rendered inside of an element, I am seeing an error "Cannot resolve a Slate...
Read more >
Error: Cannot resolve a DOM point from Slate point
So the underlying issue that causes the aforementioned error is that the new value being sent to the editor is significantly different, and...
Read more >
Slate Editor Issue: Cannot resolve a DOM point from ... - Reddit
The above error is thrown when I add a custom link into a slate editor at current cursor position and use tab or...
Read more >
Slate Editor Issue: Cannot resolve a DOM point from Slate ...
Description: The error is thrown when I add a custom link into a slate editor at current cursor position and use tab or...
Read more >
Point - Slate
Point. import { Point } from 'slate'. A point in a Slate Document . Points in Slate are inspired by the DOM Range...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found