D
Deno

help

NPM Import results in Rust panic

Ccaptainbuckkets1/29/2023
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?
ABTAndreu Botella (they/them)1/29/2023
There doesn't seem to be any open bug for this particular panic Please open one
Ccaptainbuckkets1/29/2023
Will do. Noticed a few unwraps issues
Ccaptainbuckkets1/29/2023
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...
Ccaptainbuckkets1/29/2023
Rather die than actually use NPM so will seek alternatives I guess

Looking for more? Join the community!

Recommended Posts
Deno fmt conflicting with Deno lint, when using IIFE```ts // before formating ((): void => { /* code */ })() ``` after formating with deno fmt, it adds prototype dot functions. How?How would I go about creating dot function that can be chained at the end of a number in Deno? ExamRepublish a /x/ module from a deleted repoIs it possible to publish an old module from a new repo? i'v deleted an old one and created a new reHow to get Deno to fmt on save with VSCode?I have a deno.json file with some fmt options which works if run fromt the command line but not whenIntegrate Twin to Svelte+Vite+Deno as FreshIs there any way to integrate the use of Twind into the Stelte+Vite+Deno project as Fresh does? Thacan i render some pages as SPA and some as SSR in fresh?#fresh kanalına mesaj göndercan i render some pages as SPA and some as SSR in fresh? #fresh kanalına mesaj gönderHow can i return a base64 as file on Deno Deploy?Could someone give me an example for this?How to disable deno linter for whole project directory?I'm using deno with mixed project folders, some use Vue and shouldn't be linted by deno. How do i diHow can I get `npm` in the path for Deno.run()?I'm writing a script to automate a tedious npm task that I run frequently. When I use `Deno.run()` iUse Deno.run() to communicate with ArduinoHey I'm trying to communicate via USB serial with my Arduino. My goal is to have the result I get viBest place to host server side Deno AppI have a server side app I want to host in a specific region and I only want 1 instance of it runninNPM Import missing typesPlaying around with some deno code and testing a npm import, the original package has types (redaxio