Skip to content

Better Error Message for exportJSON type - #4556

Merged
thegreatercurve merged 2 commits into
meta:mainfrom
howlowck:main
May 28, 2023
Merged

thegreatercurve merged 2 commits into
meta:mainfrom
howlowck:main

Conversation

@howlowck

Copy link
Copy Markdown
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

vercel Bot commented May 26, 2023 •

Copy link
Copy Markdown

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
Copy Markdown
Contributor

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

@howlowck

Copy link
Copy Markdown
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.)

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 45d42e75 Deployed May 26, 2023 by vercel[bot]
Preview – lexical — 45d42e75 Deployed May 26, 2023 by vercel[bot]
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