Skip to content

[bug] An improper version specification in the package.json of this repo causes an unsupported version of Wagmi to be unintentionally installed. #5492

Description

@vino-volare

Link to minimal reproducible example

https://github.com/vino-volare/reown-appkit-dependencies-issue

Steps to Reproduce

  1. You can pnpm dlx @reown/appkit-cli or clone my example repo.
  2. Change directory to the project.
  3. pnpm install

Summary

This improper version specification ">=" will install the incompatible wagmi v3, and pnpm will warn you about unmet dependencies.

"wagmi": ">=2.19.5"

Also, as mentioned in #5371, it is not good to implicitly include non-compatible versions of appkit even though it does not work with wagmi v3.

You should change it like this...
"wagmi": "^2.19.5"

List of related npm package versions

"dependencies": {
    "@react-native-async-storage/async-storage": "^2.2.0",
    "@reown/appkit": "1.8.16",
    "@reown/appkit-adapter-wagmi": "1.8.16",
    "@tanstack/react-query": "^5.59.20",
    "next": "15.3.8",
    "react": "19.2.1",
    "react-dom": "19.2.1",
    "viem": "^2.31.3",
    "wagmi": "^2.12.31"
  },
  "devDependencies": {
    "@types/node": "^22",
    "@types/react": "^19",
    "@types/react-dom": "^19",
    "eslint": "^9",
    "eslint-config-next": "15.1.6",
    "typescript": "^5"
  }

Node.js Version

v24.13.0

Package Manager

10.28.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions