emailOtp plugin causes build error

Without the emailOtp plugin, my code builds fine. If I add the plugin (as pictured), I get the error Cannot get final name for export 'base64' of ../../node_modules/.pnpm/@simplewebauthn+server@10.0.1_encoding@0.1.13/node_modules/@simplewebauthn/server/esm/deps.js

I've already updated my next.config.js file with
experimental: {
    serverComponentsExternalPackages: [
      "@simplewebauthn/server",
      "@peculiar/asn1-schema",
      "@peculiar/asn1-x509"
    ],
  },


For reference, I'm using nextjs
Screenshot_2024-12-13_at_2.36.44_AM.png
Was this page helpful?