Inserting a Link Crashes WeWrite

By

Solved bugs

How to replicate:

Create a new page (do NOT edit an old one)

Click the "Insert Link" button

Paste any link and click "Save"

WeWrite will close the page and open a window saying "Something Went Wrong" and something like "There was an error trying to load this page"

It also provides the following details:

```

Error Report:

============

Timestamp: 2025-09-03T12:58:02.561Z

URL: https://www.getwewrite.app/new

Referrer: https://www.getwewrite.app/user/ppFlrcVOdoV1a4P2nWEGOXNbrmn1

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36

Message: Cannot resolve a DOM node from Slate node: {"text":"https://youtu.be/p76bQlnVuBM"}

Stack Trace:

Error: Cannot resolve a DOM node from Slate node: {"text":"https://youtu.be/p76bQlnVuBM"}

at Object.toDOMNode (https://www.getwewrite.app/_next/static/chunks/74c8d370-bdf0d8a71a13e69b.js:1:8501)

at Object.toDOMPoint (https://www.getwewrite.app/_next/static/chunks/74c8d370-bdf0d8a71a13e69b.js:1:8641)

at Object.toDOMRange (https://www.getwewrite.app/_next/static/chunks/74c8d370-bdf0d8a71a13e69b.js:1:9406)

at o (https://www.getwewrite.app/_next/static/chunks/74c8d370-bdf0d8a71a13e69b.js:1:40073)

at https://www.getwewrite.app/_next/static/chunks/74c8d370-bdf0d8a71a13e69b.js:1:40363

at o1 (https://www.getwewrite.app/_next/static/chunks/09380e7e-5dd8c1f203bf7dee.js:1:88957)

at ui (https://www.getwewrite.app/_next/static/chunks/09380e7e-5dd8c1f203bf7dee.js:1:94039)

at uk (https://www.getwewrite.app/_next/static/chunks/09380e7e-5dd8c1f203bf7dee.js:1:104214)

at ui (https://www.getwewrite.app/_next/static/chunks/09380e7e-5dd8c1f203bf7dee.js:1:94570)

at uk (https://www.getwewrite.app/_next/static/chunks/09380e7e-5dd8c1f203bf7dee.js:1:104214)

```

EDIT: Running a test now example.com. Looks like the bug is fixed!

Loading page...
Views
Recent Edits