Ethers.js: _TypedDataEncoder was not found in @ethersproject/hash

Created on 21 Oct 2020  路  6Comments  路  Source: ethers-io/ethers.js

I recently upgraded to webpack 5 and am now seeing this warning in the browser console:

{
    "moduleName": "./node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js",
    "loc": "194:36-66",
    "message": "export '_TypedDataEncoder' (imported as '_TypedDataEncoder') was not found in '@ethersproject/hash' (possible exports: hashMessage, id, isValidName, messagePrefix, namehash)"
}

Doesn't seem to affect anything but thought I'd bring it up regardless

investigate

Most helpful comment

Yes that fixed it, deleting the lock file. thanks.

All 6 comments

Getting the same error. I'm not able to build now after upgrading ethers from 5.0.17 to 5.0.18. Webpack is still the same version for me, so that's not my problem.

As a quick check, can you delete your node_modules, package-lock.json (or yarn lock files) and do an npm install?

I don鈥檛 think this should any longer be an issue, but just trying to figure out the problem...

Yes that fixed it, deleting the lock file. thanks.

That鈥檚 good to know though. I thought the way I lock files would solve this, but maybe not all package managers handle minimum viable versions the way I expected. :(

Is this using npm or yarn?

yarn

Removing all node_modules directories and deleting yarn.lock seems to have fixed it. Thanks

Was this page helpful?
0 / 5 - 0 ratings