Skip to content

Vercel Deployment fails even though project ID defined, Error: No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 #5522

@Patrick-Ehimen

Description

@Patrick-Ehimen

Describe the bug
I have a Nextjs14 project, and my WalletConnectId variable is populated with an .env variable but only works with localhost. When trying to build with vercel, the errr shows up.

SDK Version (if relevant)

  • Client: JS
  • Version: 2.12.8

To Reproduce
Steps to reproduce the behavior:

  1. Create NextJS 14 project
  2. Create .env in root directory
  3. Declare project ID variable with process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID
  4. Use wagmi or Rainbow kit to create providers
  5. Deploy project to github amd when Vercel tries to build project the build fails with the error
  6. Error: No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2

Expected behavior
Build should not fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions