-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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: failure to build with Webpack due to "Module not found: Error: Default condition should be last one" [regression] #5731
Comments
Waiting to see if there are other issues with the version before we publish a 0.14.2 |
Merged
etrepum
added a commit
to etrepum/lexical
that referenced
this issue
Mar 18, 2024
etrepum
added a commit
to etrepum/lexical
that referenced
this issue
Mar 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lexical version: 0.14.0 and 0.14.1
Steps To Reproduce
The current behavior
You get a bunch of errors of the form:
The expected behavior
It should build without error.
Analysis
This appears to be a regression from #5618 which changed
lexical-react/package.json
adding a bunch of exports of the form:Webpack wants the
default
there to come last, i.e. aftertypes
.I've confirmed locally that just switching the order of those two lines in each instance allows the build to pass again.
I'll make up a PR for this as soon as I get a spare moment (I'm currently on leave so feel free to steal this from me).
The text was updated successfully, but these errors were encountered: