web3modal: [bug] Does Web3Modal v3 have to rely on React?

Link to minimal reproducible example

https://docs.walletconnect.com/2.0/web3modal/v3/vue/about https://docs.walletconnect.com/2.0/web3modal/v3/html/about

Summary

When Vue does not use react, an error will be reported when running Web3Modal v3.0.0 Could not resolve "react" Vue不使用React时,运行Web3Modal v3.0.0 会报错 Could not resolve "react"

When html runs Web3Modal v3.0.0, an error message Could not resolve "react" html 运行 Web3Modal v3.0.0 会报错 Could not resolve "react"

Does Web3Modal v3 have to rely on React? Web3Modal v3必须依赖React吗?

List of related npm package versions

{
	"name": "Web3Modal-V3",
	"private": true,
	"version": "0.0.0",
	"type": "module",
	"scripts": {
		"dev": "vite",
		"build": "vite build",
		"preview": "vite preview"
	},
	"dependencies": {
		"vue": "^3.3.4",
		"@wagmi/core": "^1.4.1",
		"@web3modal/wagmi": "3.0.0-alpha.6",
		"viem": "^1.10.8"
	},
	"devDependencies": {
		"@vitejs/plugin-vue": "^4.2.3",
		"vite": "^4.4.5"
	}
}

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Hi @vitusha-rat , could you try adding this to the package.json file?

"optionalDependencies": {
    "react": ">=17",
    "react-dom": ">=17"
  },