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

Failed to import - discord.js #621

Closed
nycki93 opened this issue May 5, 2023 · 2 comments
Closed

Failed to import - discord.js #621

nycki93 opened this issue May 5, 2023 · 2 comments
Labels
deno Not working in Deno

Comments

@nycki93
Copy link

nycki93 commented May 5, 2023

Failing module

import * as discord from 'https://esm.sh/[email protected]';

if (import.meta.main) {
  const dc = new discord.Client();
}

Error message

After running deno run I got this:

error: Import 'https://esm.sh/[email protected]' failed: 500 Internal Server Error
    at file:///D:/Nupa/Spells/nupa-bot-2/main.ts:1:26

Additional info

  • esm.sh version: 119
  • Deno version: 1.33.2 (release, x86_64-pc-windows-msvc)
@nycki93 nycki93 added the deno Not working in Deno label May 5, 2023
@nycki93
Copy link
Author

nycki93 commented May 5, 2023

I tried downgrading to discord.js at 13.15.1, but got this instead:

error: Import 'https://esm.sh/v119/[email protected]/deno/zlib-sync.mjs' failed: 500 Internal Server Error
    at https://esm.sh/v119/[email protected]/deno/discord.mjs:2:921

@ije
Copy link
Member

ije commented May 6, 2023

currently deno doesn't support native node module from remote

@ije ije closed this as completed in f91ea30 May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deno Not working in Deno
Projects
None yet
Development

No branches or pull requests

2 participants