DenoDDeno
Powered by
InbestigatorI
Denoβ€’2mo agoβ€’
1 reply
Inbestigator

ERR_MODULE_NOT_FOUND for installed lib

βš™οΈDeno CLIπŸ§‘β€πŸ’»JS / TS DevelopmentπŸ“¦npm Package
I have installed the
discord-api-types
discord-api-types
lib and it appears in my
deno.json
deno.json
and
deno.lock
deno.lock
files, I can also cmd+click it within my files to jump to the source. But when I try to run it with
deno run -A ...
deno run -A ...
it throws this:
TypeError: Import "discord-api-types/v10" not a dependency
  hint: If you want to use the npm package, try running `deno add npm:discord-api-types/v10`
TypeError: Import "discord-api-types/v10" not a dependency
  hint: If you want to use the npm package, try running `deno add npm:discord-api-types/v10`

(Running
deno add npm:discord-api-types/v10
deno add npm:discord-api-types/v10
does not fix it)
{
  "tasks": { "start": "deno -A jsr:@inbestigator/discord-http@0.1.0/cmd start" },
  "imports": {
    "@inbestigator/discord-http": "jsr:@inbestigator/discord-http@0.1.0",
    "discord-api-types": "npm:discord-api-types@^0.37.104",
    "open-library-client": "npm:open-library-client@^0.1.2"
  }
}
{
  "tasks": { "start": "deno -A jsr:@inbestigator/discord-http@0.1.0/cmd start" },
  "imports": {
    "@inbestigator/discord-http": "jsr:@inbestigator/discord-http@0.1.0",
    "discord-api-types": "npm:discord-api-types@^0.37.104",
    "open-library-client": "npm:open-library-client@^0.1.2"
  }
}

import { ApplicationCommandOptionType, ApplicationCommandType } from "discord-api-types/v10";
import { ApplicationCommandOptionType, ApplicationCommandType } from "discord-api-types/v10";
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

[ERR_MODULE_NOT_FOUND]
[object Object][[object Object] / help
2y ago