Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'@web3-onboard/torus' - NextJS 12 Loads in dev, but not in Vercel production #1848

Closed
1 task done
Seroxdesign opened this issue Jul 25, 2023 · 8 comments
Closed
1 task done
Assignees
Labels
bug Something isn't working

Comments

@Seroxdesign
Copy link

Current Behavior

ISSUE

the torus module doesn't' work in Vercel production, but it works in development.

I have set up webpack, babel and installed all packages following the documentation:
https://onboard.blocknative.com/docs/wallets/torus

The package loads, and is available in the wallets array, but doesn't show up/work.

Expected Behavior

It should work as it works in development

Steps To Reproduce

  1. Install import torusModule from '@web3-onboard/torus'
  2. Set up in wallets array for init
  3. click the onboard connect modal in development, notice torus loads
  4. deploy to vercel
  5. notice the torus connect button doesn't exist

What package is effected by this issue?

@web3-onboard/torus

Is this a build or a runtime issue?

Runtime

Package Version

2.20.04

Node Version

Node 16

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

Relevant log output

The function: torusModule() is console logged, but is not visible or interactable in UI

Anything else?

No response

Sanity Check

  • If this is a build issue, I have included my build config. If this is a runtime issue, I have included reproduction steps and/or a Minimal, Reproducible Example.
@Seroxdesign Seroxdesign added the bug Something isn't working label Jul 25, 2023
@Adamj1232
Copy link
Member

Hi @Seroxdesign you may want to give the web3auth/torus docs a look here: https://web3auth.io/docs/examples?product=Plug+and+Play&sdk=Plug+and+Play+Web+Modal+SDK for some ideas.
We are swamped at the moment and it may take some time to get to this in our backlog so please let us know here when you find a solution and we can get it added to the docs

@Adamj1232
Copy link
Member

@Seroxdesign is this still an issue?

@Seroxdesign
Copy link
Author

Still an issue @Adamj1232, unfortunately we set this aside for now until this gets resolved.

@Adamj1232
Copy link
Member

@Seroxdesign did you happen to look into the web3auth/torus docs for resolution?

@Seroxdesign
Copy link
Author

@Seroxdesign did you happen to look into the web3auth/torus docs for resolution?

I did, I practically scoured everything I could find, including docs, github issues etc.. could be something to do with our complex tech stack

@glitch-txs
Copy link

In the next.config.js file try setting swcMinify to false

@leightkt
Copy link
Contributor

leightkt commented Oct 12, 2023

@Seroxdesign we recently updated the @web3-onboard/torus package- will you update and let me know if you're still experiencing this issue?

@leightkt
Copy link
Contributor

@Seroxdesign closing for now- feel free to reopen if you test the updated package and still experience the same issue (or please post if you found a solution previously). Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants