英文:
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 ?
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论