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

Module not found: Can't resolve '@zetachain/protocol-contracts-solana/idl/gateway.json' #208

Closed
lukema95 opened this issue Dec 27, 2024 · 3 comments

Comments

@lukema95
Copy link
Collaborator

I used @zetachain/toolkit": "^13.0.0-rc9" in universalkit and then used the universalkit package in tempalte and got an error when starting:

 ⨯ ./node_modules/@zetachain/universalkit/dist/index-DrTHSGl9.mjs:5:1
Module not found: Can't resolve '@zetachain/protocol-contracts-solana/idl/gateway.json'
@fadeev
Copy link
Member

fadeev commented Dec 27, 2024

Are you using yarn link? Because when installed, protocol-contracts-solana should have the IDL file.

Screenshot 2024-12-27 at 13 23 42

@lukema95
Copy link
Collaborator Author

Are you using yarn link? Because when installed, protocol-contracts-solana should have the IDL file.

Screenshot 2024-12-27 at 13 23 42

Yes, I am using yarn link. Looking at universalkit node_modules, toolkit compiled packages do not seem to contain @zetachain/ protocol-contract-solana packages
image
I'm done developing the code here, but it seems a little difficult to test its functionality

@fadeev
Copy link
Member

fadeev commented Dec 27, 2024

@lukema95 I think it's because when you yarn link, it doesn't install all required packages. As a workaround, I suggest you temporarily yarn add protocol-contracts-solana into UniversalKit for testing purposes.

Alternatively, unlink, install latest toolkit rc9 into the UniversalKit and it should pull solana protocol contracts.

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