Closed SilenceRichard closed 1 hour ago
你可能需要将 pino-pretty 这个包手动安装到你的项目里面:
npm i pino-pretty
前两天也有发现这个问题,不过很奇怪官网在构建部署的时候却不会报错。
你可能需要将 pino-pretty 这个包手动安装到你的项目里面:
npm i pino-pretty
前两天也有发现这个问题,不过很奇怪官网在构建部署的时候却不会报错。
所以这个是因为antd或者ant-design-web3升级导致的吗,感觉教程示例也需要限制这两个包的版本🤔️?
之前遇到是因为 @ant-design/web3-solana
依赖的 @walletconnect/*
里面有用到这个 pino-pretty
,但是我看你这里其实没用到 @walletconnect
。
可以在 pnpm-lock.yaml 里面找下 pino-pretty
, 检查下是谁依赖的。
哦,看到了,也有 walletconnect
我降到仓库demo的版本可以生效
好像这样也可以解。
竟然是这么早的 issue,好奇怪我之前竟然没遇到这个问题🧐
好像这样也可以解。
感谢🙏
What happens?
本地运行官网提供的连接钱包示例,编译器报错,页面无法正常展示
How To Reproduce
Steps to reproduce the behavior: 1. 2.
安装ant-design-web3以及相关插件
本地执行npm run dev
无法正常访问http://localhost:3000/web3,编译器报错
错误日志
Import trace for requested module: ./node_modules/.pnpm/@metamask+sdk@0.30.1_nnrd3gsncyragczmpvfhocinkq/node_modules/@metamask/sdk/dist/node/es/metamask-sdk.js ./node_modules/.pnpm/@wagmi+connectors@5.4.0_aswt33tmrogfmzqpzq3dhbvogy/node_modules/@wagmi/connectors/dist/esm/metaMask.js ./node_modules/.pnpm/@wagmi+connectors@5.4.0_aswt33tmrogfmzqpzq3dhbvogy/node_modules/@wagmi/connectors/dist/esm/exports/index.js ./node_modules/.pnpm/wagmi@2.12.33_33ju27x7q237qze4wqayztwdou/node_modules/wagmi/dist/esm/exports/connectors.js ./node_modules/.pnpm/@ant-design+web3-wagmi@2.9.3_etmdvdxm6zy3xoz4ig6e6fvagu/node_modules/@ant-design/web3-wagmi/dist/esm/wagmi-provider/index.js ./node_modules/.pnpm/@ant-design+web3-wagmi@2.9.3_etmdvdxm6zy3xoz4ig6e6fvagu/node_modules/@ant-design/web3-wagmi/dist/esm/index.js ./app/web3/page.tsx
./node_modules/.pnpm/pino@7.11.0/node_modules/pino/lib/tools.js Module not found: Can't resolve 'pino-pretty' in '/Users/fengge/Documents/coding/wtf-dapp-demo/node_modules/.pnpm/pino@7.11.0/node_modules/pino/lib'
Import trace for requested module: ./node_modules/.pnpm/pino@7.11.0/node_modules/pino/lib/tools.js ./node_modules/.pnpm/pino@7.11.0/node_modules/pino/pino.js ./node_modules/.pnpm/@walletconnect+logger@2.1.2/node_modules/@walletconnect/logger/dist/index.es.js ./node_modules/.pnpm/@walletconnect+universal-provider@2.17.0/node_modules/@walletconnect/universal-provider/dist/index.es.js ./node_modules/.pnpm/@walletconnect+ethereum-provider@2.17.0_ryhct6r6jz2fex4xfo2quarxhi/node_modules/@walletconnect/ethereum-provider/dist/index.es.js ./node_modules/.pnpm/@wagmi+connectors@5.4.0_aswt33tmrogfmzqpzq3dhbvogy/node_modules/@wagmi/connectors/dist/esm/walletConnect.js ./node_modules/.pnpm/@wagmi+connectors@5.4.0_aswt33tmrogfmzqpzq3dhbvogy/node_modules/@wagmi/connectors/dist/esm/exports/index.js ./node_modules/.pnpm/wagmi@2.12.33_33ju27x7q237qze4wqayztwdou/node_modules/wagmi/dist/esm/exports/connectors.js ./node_modules/.pnpm/@ant-design+web3-wagmi@2.9.3_etmdvdxm6zy3xoz4ig6e6fvagu/node_modules/@ant-design/web3-wagmi/dist/esm/wagmi-provider/index.js ./node_modules/.pnpm/@ant-design+web3-wagmi@2.9.3_etmdvdxm6zy3xoz4ig6e6fvagu/node_modules/@ant-design/web3-wagmi/dist/esm/index.js ./app/web3/page.tsx
Context