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

Bug: Panic on invalid compilerOption values in deno.json #23456

Closed
marvinhagemeister opened this issue Apr 19, 2024 · 0 comments · Fixed by #23463
Closed

Bug: Panic on invalid compilerOption values in deno.json #23456

marvinhagemeister opened this issue Apr 19, 2024 · 0 comments · Fixed by #23463
Assignees
Labels
bug Something isn't working correctly config Related to configuring Deno via deno.json/deno.jsoc

Comments

@marvinhagemeister
Copy link
Contributor

Steps to reproduce

  1. Create deno.json with
// deno.json
{
  "compilerOptions": {
    "jsx": 1234 // Invalid, leads to a panic
  }
}
  1. Create a dummy file foo.ts
  2. Run deno run foo.ts

Error:

============================================================
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: macos aarch64
Version: 1.42.4
Args: ["/Users/marvinh/dev/denoland/deno/target/debug/deno", "run", "-A", "foo.tsx"]

thread 'main' panicked at cli/args/mod.rs:154:38:
called `Result::unwrap()` on an `Err` value: Error("invalid type: integer `1234`, expected a string", line: 0, column: 0)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Version: Deno 1.42.4

@marvinhagemeister marvinhagemeister added bug Something isn't working correctly config Related to configuring Deno via deno.json/deno.jsoc labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly config Related to configuring Deno via deno.json/deno.jsoc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants