I have a big NX based monorepo, half a dozen apps, frontend, backend, dozens of libs. It's all still setup to work with commonjs module types, which is what the NX generators produced always, and still do.
However more and more libraries release "ESM only"-versions, which straight up do not work at all for this monorepo.
I just completed nx migrate latest, am on NX 17, Typescript 5.2, Angular 17, but commonjs just seems to stay where it is.
Attempts to upgrade by hand have all failed, everytime I fix one error the next one comes around, often requiring large scale changes over 1k+ imports or hundered of files with uncertain outcomes.
Is there any documentation I am missing anywhere for how to migrate?
I am looking for a way to do this!
For now I decided that the time has not come yet, and to hope for a solution from Narwahl instead of manually updating a bunch of files.
As a mere reader of stack overflow, I'm not supposed to vote for a question it seems.