-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error when extending a URL: assertNode could not find node #1
Comments
edit. hm nvm doesn't seem to be it |
Hello @fwirtz ! Thanks for the kind words, glad the plugin is useful to you 👍 The error isn't related to the fragment thing you mentioned, fragment is taken from internal Slate data, not the value object. Could you tell me which version of Slate are you using ? |
hey @enzoferey thanks for the fast reply! still stuck with that and trying to debug your sourcecode haha running
Can you reproduce the error?If not, I attached my setup in the commit below - ignore the |
Currently still contains a bug, see enzoferey/slate-instant-replace#1. Add is-url as dependency Add slate-instant-replace as dependency
Thanks @fwirtz, I was finishing some stuff IRL, I'm looking at it right now. |
wow cool thanks so much! esp. given the fact that it's 11pm on a Friday night in madrid as well haha ❤️ |
This is important for me ;) I can indeed reproduce the error, I will keep you updated. Probably related to an update of Slate. |
awesome thank you SO SO SO much! |
Located the error, not sure how to fix it yet. I developed the plugin with slate 0.34.2 (working example here https://codesandbox.io/s/322jv8rxkp) and when using newer version it crashes. If this is urgent for you, downgrade to 0.34.2 and luckily you won't have other issues with other libs you are using. I will work on a fix asap. EDIT: the critical upgrade was between Slate 0.34.7 and Slate 0.35.0 EDIT 2: Found a fix, testing it properly and creating a new version 🙌 |
v0.1.8 published fe04a9b By the way I had a peerDependency on ^0.34.2 set up, and 0.35.0 was marked as a breaking upgrade by the Slate guys, so it makes a lot of sense 😄 Thank you for pointing it out, I'll close the issue whenever you confirm everything is working. Good night ! |
@enzoferey AWESOME! Just tested it, works like a charm. Just fyi the slate logger says:
probably because of this: slate-instant-replace/lib/index.js Line 32 in e01d577
you might want to change that as well. Thanks again! |
Good morning @fwirtz ! Slate upgraded to 0.37.0 since last night, bringing those deprecated messages hahaha There is also:
It seems that decision is here to stay, but I will wait a little bit before upgrading the references so I can fix any new possible API introduced in their next commits, they have backwards compability right now ;) Closing the issue. Thanks ! |
hahaha no way sorry didn't notice that. |
Hey @enzoferey,
nice job with this, exactly what I was looking for! 👏 👍
I am trying to get your url-example running and everything works fine except for one thing:
When I type a URL like
http://go.co
it gets properly detected, tagged as an Inline and the node gets rendered. If I continue typing then - lets say the characterm
to finish the URL to behttp://go.com
I receive an error message in the console:I've been stuck at this point for half an hour now and came to conclude that this either is an issue with your extension or with Slate itself. I'll have a look at your code now, but I just got started with Slate today so that might not be that effective.
Would love it if you could have a look at this. Thanks! 😊
The text was updated successfully, but these errors were encountered: