NPM Import results in Rust panic

Looking to import the Airgram NPM package because I don't want to write it from scratch at this moment. The single line of code I have reads as follows: import { Airgram } from "npm:airgram@5.0.0" Running with -- inspect results in:
Debugger listening on ws://127.0.0.1:9229/ws/a4d746f8-b43c-440e-a2e4-c39bd00f34a9
Visit chrome://inspect to connect to the debugger.

============================================================
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.29.1
Args: ["C:\\Users\\J\\.deno\\bin\\deno.exe", "run", "-A", "--unstable", "--inspect", ".\\tgscanner.js"]

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', cli\napi\js_native_api.rs:1523:6
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Debugger listening on ws://127.0.0.1:9229/ws/a4d746f8-b43c-440e-a2e4-c39bd00f34a9
Visit chrome://inspect to connect to the debugger.

============================================================
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.29.1
Args: ["C:\\Users\\J\\.deno\\bin\\deno.exe", "run", "-A", "--unstable", "--inspect", ".\\tgscanner.js"]

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', cli\napi\js_native_api.rs:1523:6
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Is there any hope of fixing this?
4 Replies
Andreu Botella (they/them)
There doesn't seem to be any open bug for this particular panic Please open one
captainbuckkets
Will do. Noticed a few unwraps issues
captainbuckkets
GitHub
NPM Import results in Rust panic · Issue #17587 · denoland/deno
Looking to import the Airgram NPM package because I don't want to write it from scratch at this moment. The single line of code I have reads as follows: import { Airgram } from "np...
captainbuckkets
Rather die than actually use NPM so will seek alternatives I guess