-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.47.x - seems nearly impossible to debug certain issues #2869
Comments
Yes I do get annoyed at time with the debug-ability. Sometimes you will get a massive stack of internal slate calls, with your internal call at the bottom. And the actual error message can be very cryptic. Perhaps there needs to be more checks in the API (e.g. checking that arguments are as expected) so that you can get a finer idea of what went wrong. |
I was also banging my head about this error. Dug into the package and found it meant that a node is undefined, which led me to my |
I get this same issue |
@danmckeon thanks for your response, I somehow overlooked it. Unfortunately that's not the case. I learned my lessons about the dangers of forgetting |
My renderBlock has |
@josh-g3 make sure you're passing all the I didn't have problems besides with decorations, which forced me to give up and revert my changes after 6 straight days. |
Got hit with this error when attempting annotations. on Slate 0.47 |
Fixed by #3093. |
Technically the issue I'm seeing appears to be in
slate-react
, notslate
I'm upgrading from Slate 0.45.x, and overall it's been simple, but trying to fix my custom decorator functions is proving quite difficult. If anything goes wrong in the decoration or annotation part of the editor, all I get is:
TypeError: Cannot read property 'ownerDocument' of null
You get this same error if you don't pass
{...attributes}
to a custom node, but I can't figure out for the life of me what in my decorator functions I'm trying to upgrade is throwing this error...It's been about 4 hours of blackbox debugging, and though I've made progress, I'm still facing the exact same error. It's just been slicing through errors all day to find the same error cropping up. I've inspected my decoration function in excruciating detail and I can't find any issue, and the error message gives no clues.
Am I overlooking something simple? Is there a way we can get more explicit error messages, if this isn't just me being dumb?
Full message:
The text was updated successfully, but these errors were encountered: