Skip to content

Deno panic: called Option::unwrap() on a None value #31430

@thealtofwar

Description

@thealtofwar

Version: Deno 2.5.6

Task serve deno task lume -s
Task lume deno run -P=lume lume/cli.ts "-s"
Warning Permissions in the config file is an experimental feature and may change in the future.
Loading config file file:///C:/Users/user/deno_panic_repro/_config.ts

============================================================
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: 2.5.6
Args: ["C:\\Users\\user\\.deno\\bin\\deno.exe", "run", "-P=lume", "lume/cli.ts", "-s"]

View stack trace at:
https://panic.deno.com/v2.5.6/x86_64-pc-windows-msvc/i-3oW-i0ptCk_lztC-3lztC8sj0tCihpysE61pysE84qysEw3gxjB45ixjBqr3zxB45ixjB6zwyxB8w-yM0iwtP69qvPs881R-li4Riy4mgBw9ingB4o0xf8x70gB2puyzBs72wzBs6vvzBki8uzByvh22B4wrxtCut0L4zijB

thread 'worker-1' panicked at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\deno_error-0.7.0\src\lib.rs:517:10:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0:     0x7ff699318505 - node_api_get_module_file_name
   1:     0x7ff69794e05b - uv_mutex_destroy
   2:     0x7ff699316ab4 - node_api_get_module_file_name
   3:     0x7ff699318354 - node_api_get_module_file_name
   4:     0x7ff699316ebe - node_api_get_module_file_name
   5:     0x7ff697793241 - uv_mutex_destroy
   6:     0x7ff69931682f - node_api_get_module_file_name
   7:     0x7ff69933cbf2 - node_api_get_module_file_name
   8:     0x7ff69933cb7f - node_api_get_module_file_name
   9:     0x7ff6993406ce - node_api_get_module_file_name
  10:     0x7ff69b2b9211 - aws_lc_0_26_0_BIO_hexdump
  11:     0x7ff69b2b935d - aws_lc_0_26_0_BIO_hexdump
  12:     0x7ff69b2b958e - aws_lc_0_26_0_BIO_hexdump
  13:     0x7ff697e34178 - uv_mutex_destroy
  14:     0x7ff697e3459c - uv_mutex_destroy
  15:     0x7ff69853eeb5 - node_api_get_module_file_name
  16:     0x7ff697e3459c - uv_mutex_destroy
  17:     0x7ff69853a13d - node_api_get_module_file_name
  18:     0x7ff6972bbd0e - uv_mutex_destroy
  19:     0x7ff69742602a - uv_mutex_destroy
  20:     0x7ff69742d5dd - uv_mutex_destroy
  21:     0x7ff6975479c6 - uv_mutex_destroy
  22:     0x7ff69755045f - uv_mutex_destroy
  23:     0x7ff697c8b121 - uv_mutex_destroy
  24:     0x7ff697c8c5d8 - uv_mutex_destroy
  25:     0x7ff697c3688c - uv_mutex_destroy
  26:     0x7ff697cc371e - uv_mutex_destroy
  27:     0x7ff698639c9b - node_api_get_module_file_name
  28:     0x7ff698632db6 - node_api_get_module_file_name
  29:     0x7ff69862dfa6 - node_api_get_module_file_name
  30:     0x7ff69862b822 - node_api_get_module_file_name
  31:     0x7ff6987c82f9 - node_api_get_module_file_name
  32:     0x7ff69933570c - node_api_get_module_file_name
  33:     0x7ff8cf4de8d7 - BaseThreadInitThunk
  34:     0x7ff8d00cc53c - RtlUserThreadStart

Repro: https://github.com/thealtofwar/deno_panic_31430_repro

Seems to occur due to the fact that I'm trying to import something that isn't declared in deno.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions