/app/node_modules/.pnpm/better-auth@1.3.13/node_modules/better-auth/dist/crypto/index.cjs:315
undefined
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /app/node_modules/.pnpm/@noble+ciphers@2.0.0/node_modules/@noble/ciphers/chacha.js from /app/node_modules/.pnpm/better-auth@1.3.13/node_modules/better-auth/dist/crypto/index.cjs not supported.
Instead change the require of chacha.js in /app/node_modules/.pnpm/better-auth@1.3.13/node_modules/better-auth/dist/crypto/index.cjs to a dynamic import() which is available in all CommonJS modules.
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at Object.<anonymous> (/app/node_modules/.pnpm/better-auth@1.3.13/node_modules/better-auth/dist/crypto/index.cjs:4:19) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v22.11.0
/app/node_modules/.pnpm/better-auth@1.3.13/node_modules/better-auth/dist/crypto/index.cjs:315
undefined
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /app/node_modules/.pnpm/@noble+ciphers@2.0.0/node_modules/@noble/ciphers/chacha.js from /app/node_modules/.pnpm/better-auth@1.3.13/node_modules/better-auth/dist/crypto/index.cjs not supported.
Instead change the require of chacha.js in /app/node_modules/.pnpm/better-auth@1.3.13/node_modules/better-auth/dist/crypto/index.cjs to a dynamic import() which is available in all CommonJS modules.
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at Object.<anonymous> (/app/node_modules/.pnpm/better-auth@1.3.13/node_modules/better-auth/dist/crypto/index.cjs:4:19) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v22.11.0