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/walletconnect above 2.4.6 doesn't work #2066

Open
1 task done
piekczyk opened this issue Feb 14, 2024 · 1 comment
Open
1 task done

@web3-onboard/walletconnect above 2.4.6 doesn't work #2066

piekczyk opened this issue Feb 14, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@piekczyk
Copy link

piekczyk commented Feb 14, 2024

Current Behavior

Config:

   "next": "13.5.5",
    "@web3-onboard/coinbase": "^2.2.5",
    "@web3-onboard/core": "^2.21.1",
    "@web3-onboard/gnosis": "^2.2.0",
    "@web3-onboard/injected-wallets": "^2.10.6",
    "@web3-onboard/ledger": "^2.5.2",
    "@web3-onboard/react": "^2.8.12",
    "@web3-onboard/trezor": "^2.4.3",
    "@web3-onboard/walletconnect": "2.5.3",
    "@web3-onboard/web3auth": "^2.2.3",
const walletConnect = walletConnectModule({
  projectId: 'ourProjectId', // it's failing even with hardcoded string
  version: 2,
  dappUrl: 'ourUrl',
})

When running app locally everything works as expected. Once deployed to staging / prod environment projectId is missing in query as in example below and therefore it's impossible to connect a wallet.

https://explorer-api.walletconnect.com/w3m/v1/getDesktopListings?projectId=&sdkType=wcm&sdkVersion=js-2.6.2&page=1&entries=9&version=2

If we downgrade walletconnect package version to 2.4.6 everything works as expected.

Weirdly enough a request before request mentioned above contains project id and returns 200.
https://verify.walletconnect.org/ourProjectId

Expected Behavior

Wallet connection working on package version above 2.4.6

Steps To Reproduce

Use Next.js app. Prep config in the way described above. Deploy it somewhere and try to use wallet connect modal.

What package is effected by this issue?

@web3-onboard/walletconnect": "2.5.3

Is this a build or a runtime issue?

Runtime

Package Version

2.5.3

Node Version

18

What browsers are you seeing the problem on?

Chrome

Relevant log output

{"error":"Missing projectId query parameter"}

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.
@piekczyk piekczyk added the bug Something isn't working label Feb 14, 2024
@Adamj1232
Copy link
Member

@piekczyk can you provide a repo I can use/test with?

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

4 participants