Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency Error #4

Open
etherCrossroads opened this issue Apr 20, 2021 · 6 comments
Open

Dependency Error #4

etherCrossroads opened this issue Apr 20, 2021 · 6 comments

Comments

@etherCrossroads
Copy link

The dependency at line 3 of file PancakeRouter is @uniswap/v2-core/contracts/interfaces/IPancakeFactory.sol, but there are no IPancakeFactory.sol file.

How can I fix this problem so that I can compile contract without error.

@funsplay
Copy link

hava the same problem . anyone can help?

@thomasn-dev
Copy link

Same problem here. Is it an error?

@safezerolife
Copy link

Yeah, that's annoying. I guess back to using Uniswap periphery... This still not a well maintained for of it.

@aliel
Copy link

aliel commented May 10, 2021

Hi All,

not changed to avoid broken other repo,

work around:

edit package.json

diff --git a/package.json b/package.json
index d4dd6e0..60e4fd9 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,7 @@
   ],
   "dependencies": {
     "@uniswap/lib": "1.1.1",
-    "@uniswap/v2-core": "^1.0.1",
+    "@uniswap/v2-core": "git://github.com/pancakeswap/pancake-swap-core.git",
     "truffle-hdwallet-provider": "^1.0.17",
     "truffle-plugin-verify": "^0.4.0"
   },

Then:

yarn
yarn compile

@banshee
Copy link

banshee commented Nov 27, 2021

FYI, the specific error message I get is:

Error: None of the sub-resolvers resolved "@uniswap/v2-core/contracts/interfaces/IPancakeFactory.sol" location.

@chaejieun-work
Copy link

I also faced the same problem. How did you solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants