v3-periphery icon indicating copy to clipboard operation
v3-periphery copied to clipboard

1.4.2 version is not compatible with v3-sdk

Open ChaituVR opened this issue 2 years ago • 4 comments

Error: Cannot find module '@uniswap/v3-periphery/artifacts/contracts/interfaces/IMulticall.sol/IMulticall.json'
[2022-09-19 18:35:23] Require stack:
[2022-09-19 18:35:23] - /workspace/node_modules/@uniswap/v3-sdk/dist/v3-sdk.cjs.development.js
[2022-09-19 18:35:23] - /workspace/node_modules/@uniswap/v3-sdk/dist/index.js

This happens when we tried to update 1.4.1 version to 1.4.2 version

ChaituVR avatar Sep 19 '22 19:09 ChaituVR

Did you find a solution?

muhammadsamir11 avatar Sep 19 '22 23:09 muhammadsamir11

Did you find a solution?

I would also like to know. The artifacts folder is not there.

jakubdonovan avatar Sep 19 '22 23:09 jakubdonovan

Tried different ways but ended up using yarn resolutions to use 1.4.1 version, hope they fix it in next version update

ChaituVR avatar Sep 20 '22 10:09 ChaituVR

artifacts folder is missing in 1.4.2 for some reason, for now the solution is downgrading to 1.4.1 to continue using the artifacts.

FYI, this works for me:

{
    "@uniswap/sdk": "^3.0.3",
    "@uniswap/sdk-core": "^3.0.1",
    "@uniswap/smart-order-router": "^2.9.2",
    "@uniswap/v3-core": "^1.0.1",
    "@uniswap/v3-periphery": "^1.4.1",
    "@uniswap/v3-sdk": "^3.9.0",
}

command: npm i @uniswap/[email protected]

jdubpark avatar Sep 20 '22 22:09 jdubpark

artifacts folder is missing in 1.4.2 for some reason, for now the solution is downgrading to 1.4.1 to continue using the artifacts.

FYI, this works for me:

{
    "@uniswap/sdk": "^3.0.3",
    "@uniswap/sdk-core": "^3.0.1",
    "@uniswap/smart-order-router": "^2.9.2",
    "@uniswap/v3-core": "^1.0.1",
    "@uniswap/v3-periphery": "^1.4.1",
    "@uniswap/v3-sdk": "^3.9.0",
}

command: npm i @uniswap/[email protected]

Thank you, this solved the issue for me.

bigchiano avatar Sep 23 '22 13:09 bigchiano

This workaround worked for me:

  "resolutions": {
    "@uniswap/v3-periphery": "1.4.1"
  }

in package.json

dade-ca avatar Sep 26 '22 09:09 dade-ca

This also worked for me!

"dependencies": {
    "@uniswap/v3-periphery": "1.4.1",
  }

roigecode avatar Sep 28 '22 15:09 roigecode

fixed in 1.4.3, sorry this took so long...

hensha256 avatar Oct 26 '22 16:10 hensha256