I am trying to host an express js app with better-auth, it used to give me this error -
2025-10-28T04:22:13.659Z [error] Error [ERR_REQUIRE_ESM]: require() of ES Module /var/task/node_modules/jose/dist/webapi/index.js from /var/task/node_modules/@better-auth/core/dist/oauth2/index.cjs not supported.Instead change the require of index.js in /var/task/node_modules/@better-auth/core/dist/oauth2/index.cjs to a dynamic import() which is available in all CommonJS modules. at /opt/rust/nodejs.js:2:13528 at Function.Vr (/opt/rust/nodejs.js:2:13906) at Ue.e.<computed>.Be._load (/opt/rust/nodejs.js:2:13498) at TracingChannel.traceSync (node:diagnostics_channel:322:14) { code: 'ERR_REQUIRE_ESM'}I tried to import it dynamically, but is that the best solution we got?