-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Description
Guys, in your packages, for example in @v4-sdk, you import a lot of stuff from 'ethers/lib/utils', which is compatible with ethers v5 but not with v6.

But, since it's not presented in any of package.json files, your imports are referencing workspace's ethers version, which is in a lot of times v6.
So, this leads to build crashes with Package subpath './lib/utils' is not defined by "exports" error across the globe.
For the ones who's seeing it, this resolves the issue.
//package.json
{
"pnpm": {
"packageExtensions": {
"@uniswap/v4-sdk@*": {
"dependencies": {
"ethers": "5.7.2",
}
}
}
},
"overrides": {
"@uniswap/v4-sdk@*": {
"ethers": "5.7.2"
}
},
"resolutions": {
"@uniswap/v4-sdk/ethers": "5.7.2"
}
}
RyanWilkins, 0x67, derekbar90, neverknowerdev, rodsouto and 2 more
Metadata
Metadata
Assignees
Labels
No labels