Replies: 8 comments 12 replies
-
We've encountered the same issue since attempting to update to |
Beta Was this translation helpful? Give feedback.
-
Agreed. Additionally, this technically should not have been consider a minor update as well - it's very much a disruptive, breaking change. |
Beta Was this translation helpful? Give feedback.
-
what are the libraries you used in MF here that doesn't fit your need? Looking into a path for everyone here |
Beta Was this translation helpful? Give feedback.
-
We didn't move to ESM only. The packages are dual format(cjs+esm). Not sure which version package has the preoblem. Can you provide the more info like which package which version? |
Beta Was this translation helpful? Give feedback.
-
As far as I know, we still ship cjs and esm for all our builds, at least of the core runtime? All the next apps are cjs based as well. Most the webpack plugins are cjs. Are you using the runtime without a build plugin? Or is this a problem encountered through the "/enhanced" plugin? Anyone have a repo that demonstrates the problems? |
Beta Was this translation helpful? Give feedback.
-
@ScriptedAlchemy i've just update module-federation packages from 0.11 to 0.17 and got errors like:
and so on... But type If I set
in it fixes all the errors, but we are not ready to move the whole project into esm Before 0.12, everything worked fine. |
Beta Was this translation helpful? Give feedback.
-
@ScriptedAlchemy https://github.com/smelukov/mf-esm-cjs-repo |
Beta Was this translation helpful? Give feedback.
-
@ScriptedAlchemy any updates here? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After 0.12, the MF-libraries started using the ESM format. This forces every package and project that uses MF to migrate into ESM. Some of them can't do this for several reasons:
type: "module"
. Some of these may be upgraded to newer versions (that published as ESM), but some just don't have an ESM.So, it seems too early to start using ESM (or publish packages is ESM-only). For now, it blocks non-ESM projects from getting the latest MF updates, and this is sad.
I would like to propose moving back to CJS or publishing MF-libraries in ESM+CJS format.
Beta Was this translation helpful? Give feedback.
All reactions