ant-design / ant-design-web3

🥳 Efficient react components for building dapps easier | Connect crypto wallets and more Web3 UI components | Web3 icons | Supports Ethereum, Solana, Bitcoin, TON and others.

Home Page:https://web3.ant.design

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Module not found: Can't resolve 'fs' when using bitcoin package in next.js

AmAzing129 opened this issue · comments

What happens?

在 Next.js 中使用 @ant-design/web3-bitcoin 报错

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

  • Ant Design Web3 Version:
  • Node Version:
  • Platform:
  • mempoolJS 使用了 ws 不支持 client
  • window 对象需要做 next.js 适配

@mempool/mempool.js 看起来并没有积极维护,我们如果只用了其中几个 get 接口,不如直接改成 fetch 调用,参考 restful api 文档:https://mempool.space/zh/docs/api/rest

The same as #880