You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code will trigger a Typescript error stating:
"@lexical/react/LexicalErrorBoundary" has no exported member named 'LexicalErrorBoundary'. Did you mean 'LexicalErrorBoundaryProps'?
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:
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
"@lexical/react/LexicalErrorBoundary" has no exported member named 'LexicalErrorBoundary'. Did you mean 'LexicalErrorBoundaryProps'?
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:
The text was updated successfully, but these errors were encountered: