How can I fix the 'Source can be imported from more than one directory' error in my tsol when using Venom and Locklift?

huangapple go评论51阅读模式
英文:

How can I fix the 'Source can be imported from more than one directory' error in my tsol when using Venom and Locklift?

问题

错误:源可以从多个目录导入。 Venom Locklift 构建错误。

我试图构建一个名为 Tip3Votes.tsol 的 tsol 文件,但我遇到了这个错误:

> 错误:源“../node_modules/tip3/contracts/abstract/TokenWalletBurnableByRootBase.sol”可以从多个目录导入。路径列表:
> /Users/sam/code/Web3/tip3-token/contracts
> /Users/sam/code/Web3/tip3-token/node_modules
>
> --> /Users/sam/code/Web3/tip3-token/contracts/Tip3Votes.tsol:2:1:
> |
> 2 | import "../node_modules/tip3/contracts/abstract/TokenWalletBurnableByRootBase.sol";

实际上,一开始我将 tip3 文件夹从 node_modules 复制到我的 contracts 文件夹中,但当我遇到这个错误时,我从我的 contracts 文件夹中移除了该文件夹,但我仍然遇到这个错误。
我认为它保存在某个文件中,但我不知道在哪里。
我已经删除了所有 build 和 node_modules 文件夹,但仍然遇到这个错误。
我应该怎么做来解决这个问题?

英文:

Error: Source can be imported from more than one directory. venom locklift building error

I am trying to build a tsol file named Tip3Votes.tsol

but i got this error

> Error: Source "../node_modules/tip3/contracts/abstract/TokenWalletBurnableByRootBase.sol" can be imported from more than one directory.List of paths:
> /Users/sam/code/Web3/tip3-token/contracts
> /Users/sam/code/Web3/tip3-token/node_modules
>
> --> /Users/sam/code/Web3/tip3-token/contracts/Tip3Votes.tsol:2:1:
> |
> 2 | import "../node_modules/tip3/contracts/abstract/TokenWalletBurnableByRootBase.sol";

Actually at first i copied tip3 folder from node_modules to my contracts folder
but when i got this error I removed the folder from my contracts folder but i'm still getting this error
I think it's save in some file but I don't know where
I removed all build and node_modules folder and again i am getting this error
what should i don to solve this problem ?

答案1

得分: 1

Sure, here's the translation:

我能看到你正在使用的导入语句吗?

英文:

can i see the import statements that you are using ?

huangapple
  • 本文由 发表于 2023年5月22日 05:04:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/76301911.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定