metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.32k stars 6.26k forks source link

Error: Cannot find module './candy-machine-v2-cli.ts' #1670

Closed BigClunk closed 2 years ago

BigClunk commented 2 years ago

Describe the bug When ever I am trying to to verify if the metadata URI on chain has been successfully uploaded this error comes up

I try to run the command

ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts verify_upload -e devnet -k ~/.config/solana/devnet-test.json sometimes add -c example but it broken with or without the last part of this command. This is the error I get when running it

` node:internal/modules/cjs/loader:936 throw err; Error: Cannot find module './candy-machine-v2-cli.ts' Require stack:

As you can see from the photo, the file path is correct. I have tried to reinstall both yarn and npm deleted the cache folder and tried to hard code the file path to no success, mostly probably because I have never used type script before

Desktop (please complete the following information):

Capture

Khushhal23 commented 2 years ago

Please use ./ instead of ~/ for paths in windows operating system, ~/ if for mac

Yash094 commented 2 years ago

I have the same error even after using ./

Khushhal23 commented 2 years ago

You can dm me on discord- Ks.SOL #6451

stegaBOB commented 2 years ago

You shouldn't be using the ~on Windows from what I understand. It will screw up your path. Make sure you are in the correct folder. You can use cd foldername to go into a folder and cd .. to move out. Check out this link to learn more: https://www.howtogeek.com/659411/how-to-change-directories-in-command-prompt-on-windows-10/

99matter commented 2 years ago

You can dm me on discord- Ks.SOL #6451

did you fix the problem? i need help with the same error

BigClunk commented 2 years ago

No it still isn't working for me either, got wrapped up in another project. I haven't really looked at the issues since

On Fri, Feb 18, 2022 at 10:36 AM 99matter @.***> wrote:

You can dm me on discord- Ks.SOL #6451

did you fix the problem? i need help with the same error

— Reply to this email directly, view it on GitHub https://github.com/metaplex-foundation/metaplex/issues/1670#issuecomment-1044714512, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRHHQ23E5HPXAUX7FKGQBDU3ZRP5ANCNFSM5NB7Z4HQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

yassmineeeeee commented 2 years ago

No it still isn't working for me either, got wrapped up in another project. I haven't really looked at the issues since On Fri, Feb 18, 2022 at 10:36 AM 99matter @.> wrote: You can dm me on discord- Ks.SOL #6451 did you fix the problem? i need help with the same error — Reply to this email directly, view it on GitHub <#1670 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRHHQ23E5HPXAUX7FKGQBDU3ZRP5ANCNFSM5NB7Z4HQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.>

please do you resolve this issue? I had the issue and still no solution

yassmineeeeee commented 2 years ago

You can dm me on discord- Ks.SOL #6451

please how can I resolve this problem? I have the same issue but no solution