pancakeswap / pancake-swap-periphery

GNU General Public License v3.0
191 stars 459 forks source link

Dependency Error #4

Open etherCrossroads opened 3 years ago

etherCrossroads commented 3 years ago

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 commented 3 years ago

hava the same problem . anyone can help?

thomasn-dev commented 3 years ago

Same problem here. Is it an error?

safezerolife commented 3 years ago

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

aliel commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

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