-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Bug: fails to compile on nextjs Client Component SSR - Error: Element type is invalid: expected a string #5823
Comments
Looking into it, so far I have no idea what's going on with webpack/swc here. All of the errors are very ugly and happen after a lot of compilation has already taken place. |
For reference, here's what the stack trace looks like in the project I've reproduced this in
|
etrepum
added a commit
to etrepum/lexical
that referenced
this issue
Apr 5, 2024
This comment was marked as resolved.
This comment was marked as resolved.
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lexical version: 0.14.3
Steps To Reproduce
localhost:3000/not-work/hi
)Link to code example: https://github.com/2wheeh/nextjs-lexical-build-error
The current behavior
Call apis or anything imported from Lexical in ClientComponent (with
'use client'
directive).Rendering this component in nextjs server side fails.
build time: fails to generate static pages.
run time: fails to compile dynamic ssr pages.
Now It only works with dynamic imports with no ssr.
The expected behavior
works well as it was til 0.14.2
The text was updated successfully, but these errors were encountered: