Replies: 7 comments
-
I found the common issues link with instructions for Vite. link Replaced the vite config with this and removed the This will suppress that
This is what our init code looks like:
Also, we are currently a client side only build. We want to convert to Nuxt but in our backlog for right now. |
Beta Was this translation helpful? Give feedback.
-
This is the require that it is breaking on: I can fix this manually or use that |
Beta Was this translation helpful? Give feedback.
-
Here is a hosted version: https://smy.ecotokens.net/login I added the domains to allowlist |
Beta Was this translation helpful? Give feedback.
-
Bump Does anyone have a Vue/Vite prod build working? |
Beta Was this translation helpful? Give feedback.
-
Friendly bump |
Beta Was this translation helpful? Give feedback.
-
Hey.. we just released new version of Web3Auth 3.0.4 which has the fix |
Beta Was this translation helpful? Give feedback.
-
This is fixed further in 4.4.2 |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I am adding the Web3Auth sign in modal to our existing Vue app that is built with Vite.
I have it mostly working in the development environment. It can load the module and I can sign in with social and solana wallets.
But when I compile the build for production and run that, it spins and does not load.
Development
:Production
:Our code is pretty standard I think. I followed the example Vue code here.
There were some things I had to work around, like it was asking for NodeJS methods like
require
,process
andBuffer
. I am not sure if that is having an effect in the production build. I have not changed much else except that this is running in a Vite build that I think is using Rollup under the hood for bundling.For those I did some polyfill from the main
index.html
:and in the
vite.config.js
:Also, currently our build is client side only. I was thinking of converting the build to be server side rendered. I don't know if that would solve it.
If anyone has any ideas or has run in to a similar, any suggestion or feedback how can debug is appreciated.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions