You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im sorry Im reopening this issue I had this error and it wasn't coming from where I was thinking and it was fixed and i closed the issue but now I know where the error is coming from, I should have debugged more.
and i get this error when running with RUST_BACKTRACE=1 and deno run --unstable --compat --no-check -A src/mod.ts
it looks for package.json in the typings folder
============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.
thread 'main' panicked at 'Provided URL was not file:// URL: https://raw.githubuserc
ontent.com/discordjs/discord.js/13.6.0/typings/package.json', cli\compat\esm_resolve
r.rs:154:25
stack backtrace:
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtra
ce.
The text was updated successfully, but these errors were encountered:
Lolicchi
changed the title
Error when using // @deno-types=index.d.ts
Deno has panicked error when using // @deno-types=index.d.ts
Apr 27, 2022
Lolicchi
changed the title
Deno has panicked error when using // @deno-types=index.d.ts
Deno has panicked error when importing types from index.d.ts file
Apr 27, 2022
Im sorry Im reopening this issue I had this error and it wasn't coming from where I was thinking and it was fixed and i closed the issue but now I know where the error is coming from, I should have debugged more.
Im using https://www.npmjs.com/package/discord.js this npm commonjs library with
--unstable
--compat
flag and im trying to import a type from theindex.d.ts
file they provide https://raw.githubusercontent.com/discordjs/discord.js/13.6.0/typings/index.d.tsthis is my code:
it also happens when doing
and i get this error when running with
RUST_BACKTRACE=1
anddeno run --unstable --compat --no-check -A src/mod.ts
it looks for package.json in the typings folder
============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.
Platform: windows x86_64
Version: 1.20.4
Args: ["C:\Users\dell\.deno\bin\deno.exe", "run", "--unstable", "--compat", "--
no-check", "-A", "src/mod.ts"]
thread 'main' panicked at 'Provided URL was not file:// URL: https://raw.githubuserc
ontent.com/discordjs/discord.js/13.6.0/typings/package.json', cli\compat\esm_resolve
r.rs:154:25
stack backtrace:
note: Some details are omitted, run with
RUST_BACKTRACE=full
for a verbose backtrace.
The text was updated successfully, but these errors were encountered: