@paulishca Do you use any automatic patching strategy to ensure the changes you make for that library stay functional?
On my side, I use libraries like patch-package to easily manage changes to npm libraries. It helps automate the patch installation process and ensures my updates persist.
@merlinpatt: Regarding the issue mentioned, I haven’t tested upgrading React Router to v7 myself, I’m still on v6. I’m unsure if there’s another workaround or specific issue in the upgrade process. However, I believe Meteor struggles with .mjs files, which might explain why switching to .js or .ts formats makes it work, as suggested above.
ESM proper support would be a big improvement if Meteor’s bundler capabilities were updated, especially with a modern bundler. Using something like jorgenvatle:vite-bundler might help on that.
That said, I haven’t worked much with the Meteor bundler or .mjs files to provide a more detailed answer.