Archived Content from Web3Auth Community
This topic was originally posted by mariasf on 8/21/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.
I had facing this error with Nuxt3, in my deployed Vercel app. Because library implemented @web3auth/... has some polyfill issues to solve.
First I needed to install packages pnpm add --save-dev buffer process, Then I call them in my layout by default.
<script type="module" lang="ts">// Global node polyfill.
import { Buffer } from “buffer”;
import process from “process”;
window.global = window;
window.Buffer = Buffer;
window.process = process;
</script>