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

Cannot find module '../build/TokenDeployer.json' #34

Open
roadbuilder opened this issue Nov 9, 2022 · 2 comments
Open

Cannot find module '../build/TokenDeployer.json' #34

roadbuilder opened this issue Nov 9, 2022 · 2 comments

Comments

@roadbuilder
Copy link

This issue is not fixed:
Link to original closed issue: #2

Try running from a new hardhat project and installing axelar-local-dev according to the readme.
Then attempt to npx hardhat test, it will give the same error:
Error: Cannot find module '../artifacts/@axelar-network/axelar-cgp-solidity/contracts/TokenDeployer.sol/TokenDeployer.json'

It doesn't have the TokenDeployer.json artifacts because it didn't compile the contracts in the node_modules @axelar-network directory.
Trying to add that directory to the hardhat.confg.js doesn't help.
Not sure how to get this running. Importing the entire test project seems to work fine, but I don't need all that.

@roadbuilder
Copy link
Author

For a temporary fix, I was able to copy the missing file over to my node_modules, and it works now:
image

@vikramtest12
Copy link

vikramtest12 commented Nov 23, 2022

Where did you get the TokenDeplolyer.json from? Also is there a simple example of just using this as module ? I am not sure where 'artificats' comes from in the path ? I just did a simple npm install axelarnetwork/axelar-local-dev

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

2 participants