Hi! I'm trying to use this package https://github.com/vasturiano/react-globe.gl#react-globegl with my Remix app, but unfortunately running into the ERR_REQUIRE_ESM error on:
Error [ERR_REQUIRE_ESM]: require() of ES Module /mycodebase/node_modules/three/examples/jsm/renderers/CSS2DRenderer.js from /mycodebase/node_modules/globe.gl/dist/globe.gl.common.js not supported.
Instead change the require of CSS2DRenderer.js in /mycodebase/node_modules/globe.gl/dist/globe.gl.common.js to a dynamic import() which is available in all CommonJS modules.
I have tried running npx rmx-cli get-esm-packages react-globe.gl, which found nothing, but I added "three" and "react-globe.gl" to the serverDependenciesToBundle anyways which didn't change anything.
I also tried using the ClientOnly utility component:
return <ClientOnly>{() => <Globe />}</ClientOnly>;
But this also did not change anything. Was wondering if anyone might have other ideas — right now it seems like I'll have to make my own globe 😵💫 Thank you!