node_modules下@web3modal/base目录中的package.json文件
exports": {
".": {
"types": "./dist/types/exports/index.d.ts",
"import": "./dist/esm/exports/index.js",
"default": "./dist/esm/exports/index.js"
},
"./react": {
"types": "./dist/types/exports/react.d.ts",
"import": "./dist/esm/exports/react.js",
"default": "./dist/esm/exports/react.js"
},
"./adapters/evm/wagmi": {
"types": "./dist/types/adapters/evm/wagmi/index.d.ts",
"import": "./dist/esm/adapters/evm/wagmi/index.js",
"default": "./dist/esm/adapters/evm/wagmi/index.js"
}
}
使用 import { EVMWagmiClient } from '@web3modal/base/adapters/evm/wagmi'; 会提示找不到
2***@qq.com
- 发布:2025-07-19 16:08
- 更新:2025-10-28 21:20
- 阅读:495
这个问题如何处理的呢?大佬能否告知
-
-
回复 DCloud_UNI_JBB: 和发布者的问题一样,通过npm下载
"dependencies": {
"@wagmi/connectors": "^6.1.1",
"@wagmi/core": "^2.22.1",
"@web3modal/wagmi": "^5.1.11",
"ethers": "^6.15.0",
"lottie-web": "^5.13.0",
"moment": "^2.30.1",
"moment-timezone": "^0.6.0",
"siwe": "^2.3.2",
"viem": "^2.38.5"
}
这几个插件,发现web3modal 这个路径问题package.json 中的路径无法识别2025-10-31 11:45
2***@qq.com (作者)
web3modal之前组件一直使用较低的版本,最近要升级,升级之后发现只要真实存在的目录就能找到文件。如果是在package.json里exports中的虚拟路径就找不到
2025-07-22 11:09
DCloud_UNI_JBB
回复 2***@qq.com: 你可以先用正常的vue项目(不包含uniapp)测试下有没有这个问题,有的话那就是路径导出的问题了
2025-07-22 11:18
1***@qq.com
回复 2***@qq.com: 您好,大佬这个问题最后如何解决的呢
2025-10-28 21:23