Open hkiame opened 3 months ago
This is because the documentation reflects the in-development version of lexical, when the next version is released (presumably 0.16.0), this will work. See #6088 (the breaking change to the docs) and #6144 (hopefully a plan will be made to reduce the pain that bleeding edge docs cause in the future)
This issue is related to the official Lexical documentation for "Getting Started with React"
Steps To Reproduce
The current behavior
Destructuring LexicalErrorBoundary in the import statement leads to a Typescript error because the exported member might be the component itself instead of a named export.
The expected behavior
The documentation should import the component directly without destructuring: