Simple infrastructure that enables Web3 wallets and applications to provide seamless user logins for both mainstream and Web3.0 users.
426
stars
229
forks
source link
Critical Production Build Error: Buffer is not defined - unable to use the page #933
Closed
reemardelarosa closed 1 year ago
Describe the bug
Buffer is not defined when deployed to production but working in local development. Applied most of the solutions here but had no luck. https://github.com/vitejs/vite/discussions/2785
To Reproduce
Steps to reproduce the behavior:
Replicated also in stackblitz setup https://stackblitz.com/edit/qwik-starter-dtpczo?file=adaptors/express/vite.config.ts
yarn serve
Expected behavior
web3core should load and the signing form will display.
In the local build, it is working.
https://user-images.githubusercontent.com/4918140/203891353-35f17394-33b5-4db1-a209-d6225701816d.mov
Screenshots
Device Info (please complete the following information):
Additional context
For reference
vite.config.ts