aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

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

Open AsfndAmin opened this issue 2 years ago • 3 comments

"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 avatar Oct 27 '22 11:10 AsfndAmin

I had the same bug, any solution yet

Youdonate avatar Oct 28 '22 18:10 Youdonate

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

AsfndAmin avatar Oct 28 '22 19:10 AsfndAmin

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.

calebhughes16 avatar Oct 30 '22 12:10 calebhughes16

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

gregnazario avatar Dec 21 '22 07:12 gregnazario

? This issue has been closed ?

stevekeol avatar Feb 21 '23 11:02 stevekeol

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 .

sudhanshucrypto avatar Mar 11 '23 09:03 sudhanshucrypto

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

gregnazario avatar Mar 11 '23 16:03 gregnazario

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"

avishkarabhishek786 avatar Sep 10 '23 11:09 avishkarabhishek786