Open AlessioGr opened 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
lexical | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 1, 2024 4:33pm |
lexical-playground | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 1, 2024 4:33pm |
If it happens often to the users of your library - may I ask if you place Lexical as dependency or peerDependency in package.json? It shall be the latter with range of versions supported
This error message can be kinda similar to the React hooks error message:
E.g. If people have multiple versions of lexical installed, where the lexical editor is initialized by one version of lexical, but their own custom nodes are initialized by a different version, this error message will occur.
This happens to SO many people after they upgrade my package and forget to make sure their lexical version matches the one which my package is using.
Adding this hint to the error message will give them a chance to figure out why this might be happening