useDApp
useDApp copied to clipboard
export 'dnsEncode' (reexported as 'dnsEncode') was not found in '@ethersproject/hash' (possible exports: _TypedDataEncoder, hashMessage, id, isValidName, messagePrefix, namehash)
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"
},
Downgraded to "@usedapp/core": "^0.11.0" and it built on Netlify and it worked
@noodesonmars Can you try adding "@ethersproject/hash": "^5.6.0"
to resolutions
as well and see if that helps?