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": "Move compilation failed: Unable to find package manifest in 'aptos-move/move-examples/hello_blockchain/' or in its parents"[Bug] #5324

Closed
AsfndAmin opened this issue Oct 27, 2022 · 8 comments
Labels
bug Something isn't working community

Comments

@AsfndAmin
Copy link

"Error": "Move compilation failed: Unable to find package manifest in 'aptos-move/move-examples/hello_blockchain/' or in its parents"# 🐛 Bug

To reproduce

Code snippet to reproduce

# Your code goes here
# Please make sure it does not require any external dependencies

Stack trace/error message

// Paste the output here

Expected Behavior

System information

Please complete the following information:

Additional context

Add any other context about the problem here.

@AsfndAmin AsfndAmin added the bug Something isn't working label Oct 27, 2022
@Youdonate
Copy link

I had the same bug, any solution yet

@AsfndAmin
Copy link
Author

Yes found the solution, just clone the aptos repo cd in to core_aptos and then call

@calebhughes16
Copy link

you are in the wrong directory trying to use the command. you need to be in the directory with the .toml file describing the move module you are trying to publish.

@gregnazario
Copy link
Contributor

This is an error driven if it's the wrong directory. You'll need to ensure --package-dir points to the directory with the Move.toml file

@stevekeol
Copy link
Contributor

? This issue has been closed ?

@sudhanshucrypto
Copy link

i have same issue Unable to find package manifest. Make sure that the source files are located in a sub-directory of a package containing a Move.toml file. and i m in the right directory . but still my .move file extension is not working .

@gregnazario
Copy link
Contributor

To not have unable to find package manifest. Your structure must be as follows:

top_folder/
top_folder/Move.toml
top_folder/sources
top_folder/sources/Module1.move
top_folder/sources/Module2.move

Then you can run

--package-dir /path-to-top-folder/top_folder

@avishkarabhishek786
Copy link

I was getting this error when I did not enclose address in quotes in Move.toml file:

This will not compile

[addresses]
basic_address = 0x635bc91e8f3cd9759b5d90f80e94bb34fae17f9fa48345970667955d63084e3e

This will compile

[addresses]
basic_address = "0x635bc91e8f3cd9759b5d90f80e94bb34fae17f9fa48345970667955d63084e3e"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community
Projects
None yet
Development

No branches or pull requests

8 participants