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

Error of relative import path #13

Closed
alan890104 opened this issue Oct 20, 2023 · 2 comments
Closed

Error of relative import path #13

alan890104 opened this issue Oct 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@alan890104
Copy link

alan890104 commented Oct 20, 2023

First of all, thank you very much for creating such a useful VSCode plugin for tact developers! However, we, at Ton Dynasty, have recently encountered some issues regarding relative import paths while using this plugin.

This is one of the file which will cause error:

image

The error says:

Could not resolve import ./packages/token/nft/NFTCollection in /home/alankingdom/文件/ton-dynasty/contracts/contracts/nft_enforce_royalty_example.tact

Our contract refers to the contents of packages/token/nft/NFTCollection, but as you can see in the image, due to the inability to resolve relative paths successfully, this plugin's other features are also affected.

@logvik logvik added the bug Something isn't working label Oct 20, 2023
@alan890104
Copy link
Author

I have just updated the link to our contract. I paste it here as well to help you investigate the error.

https://github.com/Ton-Dynasty/tondynasty-contracts/blob/main/contracts/nft_enforce_royalty_example.tact

logvik added a commit that referenced this issue Oct 21, 2023
@logvik
Copy link
Member

logvik commented Oct 21, 2023

please use the relative path with extension .tact. It is required, because you can also import with .func extension, for example, and then we must to know which handler to use such file type.

@logvik logvik closed this as completed Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants