useDApp icon indicating copy to clipboard operation
useDApp copied to clipboard

export 'dnsEncode' (reexported as 'dnsEncode') was not found in '@ethersproject/hash' (possible exports: _TypedDataEncoder, hashMessage, id, isValidName, messagePrefix, namehash)

Open noodesonmars opened this issue 2 years ago • 2 comments

Using "@usedapp/core": "^1.0.2"

export 'dnsEncode' (reexported as 'dnsEncode') was not found in '@ethersproject/hash' (possible exports: _TypedDataEncoder, hashMessage, id, isValidName, messagePrefix, namehash)

Does not appear in console when running yarn build, but appears in Netlify during production build.

I added this from the troubleshooting page on the website but it changed nothing:

  "resolutions": {
    "@ethersproject/abi": "5.2.0",
    "@ethersproject/contracts": "^5.6.0"
  },

noodesonmars avatar May 20 '22 18:05 noodesonmars

Downgraded to "@usedapp/core": "^0.11.0" and it built on Netlify and it worked

noodesonmars avatar May 20 '22 19:05 noodesonmars

@noodesonmars Can you try adding "@ethersproject/hash": "^5.6.0" to resolutions as well and see if that helps?

rzadp avatar May 23 '22 08:05 rzadp