Skip to content
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

Better Error Message for exportJSON type #4556

Merged
merged 2 commits into from
May 28, 2023
Merged

Conversation

howlowck
Copy link
Contributor

When creating a custom Node that extends an existing Node, and exportJSON() is implemented but uses the output of super.exportJSON(), the current error message LexicalNode: Node %s does not implement .exportJSON(). is misleading.

@vercel
Copy link

vercel bot commented May 26, 2023

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 26, 2023 2:47pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2023 2:47pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 26, 2023
@fantactuka
Copy link
Contributor

Could you run npm run extract-codes and commit codes.json file as well?

@howlowck
Copy link
Contributor Author

Could you run npm run extract-codes and commit codes.json file as well?

Thank you! Updated (not sure why it added more messages in codes.json than just my change.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants