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

[Bug]: TypeError: Module not found "https://deno.land/std/hash/mod.ts". #169

Open
ralyodio opened this issue Nov 8, 2023 · 8 comments
Open
Labels
bug Something isn't working

Comments

@ralyodio
Copy link

ralyodio commented Nov 8, 2023

Operating System

arch

Deno version

1.38

Nessie version

2.0.11

Bug description

Warning Implicitly using latest version (0.205.0) for https://deno.land/std/hash/mod.ts
TypeError: Module not found "https://deno.land/std/hash/mod.ts".
at https://deno.land/x/god_crypto@v0.2.0/src/eme_oaep.ts:1:28
at async ClientSQLite._migrationHandler (https://deno.land/x/nessie@2.0.11/clients/AbstractClient.ts:246:37)
at async ClientSQLite._migrate (https://deno.land/x/nessie@2.0.11/clients/AbstractClient.ts:103:7)
at async ClientSQLite.migrate (https://deno.land/x/nessie@2.0.11/clients/ClientSQLite.ts:107:5)
at async Command.migrate [as fn] (https://deno.land/x/nessie@2.0.11/cli/commands.ts:138:3)
at async Command.execute (https://deno.land/x/cliffy@v0.25.7/command/command.ts:1794:7)
at async Command.parseCommand (https://deno.land/x/cliffy@v0.25.7/command/command.ts:1639:14)
at async cli (https://deno.land/x/nessie@2.0.11/cli.ts:29:3)
at async run (https://deno.land/x/nessie@2.0.11/cli.ts:139:5)
at async https://deno.land/x/nessie@2.0.11/cli.ts:158:1 {
code: "ERR_MODULE_NOT_FOUND"
}

Steps to reproduce

Warning Implicitly using latest version (0.205.0) for https://deno.land/std/hash/mod.ts
TypeError: Module not found "https://deno.land/std/hash/mod.ts".
at https://deno.land/x/god_crypto@v0.2.0/src/eme_oaep.ts:1:28
at async ClientSQLite._migrationHandler (https://deno.land/x/nessie@2.0.11/clients/AbstractClient.ts:246:37)
at async ClientSQLite._migrate (https://deno.land/x/nessie@2.0.11/clients/AbstractClient.ts:103:7)
at async ClientSQLite.migrate (https://deno.land/x/nessie@2.0.11/clients/ClientSQLite.ts:107:5)
at async Command.migrate [as fn] (https://deno.land/x/nessie@2.0.11/cli/commands.ts:138:3)
at async Command.execute (https://deno.land/x/cliffy@v0.25.7/command/command.ts:1794:7)
at async Command.parseCommand (https://deno.land/x/cliffy@v0.25.7/command/command.ts:1639:14)
at async cli (https://deno.land/x/nessie@2.0.11/cli.ts:29:3)
at async run (https://deno.land/x/nessie@2.0.11/cli.ts:139:5)
at async https://deno.land/x/nessie@2.0.11/cli.ts:158:1 {
code: "ERR_MODULE_NOT_FOUND"
}

Aditional information

No response

@ralyodio ralyodio added the bug Something isn't working label Nov 8, 2023
@ralyodio
Copy link
Author

ralyodio commented Nov 8, 2023

this has been replaced with std/crypto

@halvardssm
Copy link
Owner

Hi @ralyodio I did an inspection of the dependencies, but I could not see any usage of https://deno.land/std/hash/mod.ts (unversioned). Are you sure that your migration files and the config file is using the latest nessie version?

@ralyodio
Copy link
Author

ralyodio commented Nov 9, 2023

It's from god crypto which Nessie requires.

@halvardssm
Copy link
Owner

@ralyodio When doing deno info, there is no usage of god crypto. I know it was from a previous version of sqlite and MySQL, but in recent versions this was removed. Have you double checked that you have update nessie in the migration files, the config file, and the cli? try to run with -r, and let me know if you still have the issue.

deno info -r https://raw.githubusercontent.com/halvardssm/deno-nessie/main/mod.ts
deno info -r https://raw.githubusercontent.com/halvardssm/deno-nessie/main/cli.ts

@ralyodio
Copy link
Author

ralyodio commented Nov 9, 2023

sorry, I'm not sure what you're asking me. I ran those outputs and got a long list of a tree of urls to github.

@halvardssm
Copy link
Owner

No worries, I am asking you if you are sure that you have all nessie imports updated to latest?

Can you maybe share a repo with me so that I can take a look and debug myself?

@ralyodio
Copy link
Author

ralyodio commented Nov 9, 2023

@halvardssm
Copy link
Owner

I can see from your config file that you are using an outdated nessie version.

Also, although I generally advise against it, I also see that the migration files are using old nessie imports, if updating the config file doesn't solve it, you can try to update the migration files as well, but make sure to backup the database beforehand.

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