denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
97.36k stars 5.36k forks source link

Bug: `ERROR: Bad resource ID` running eslint in preact repo #23529

Open marvinhagemeister opened 6 months ago

marvinhagemeister commented 6 months ago

Steps to reproduce

  1. Clone https://github.com/preactjs/preact
  2. Run npm i
  3. Run DENO_FUTURE=1 deno task lint

Error

DENO_FUTURE=1 deno-git task lint
Task lint run-s eslint tsc

> preact@10.20.2 eslint
> eslint src test debug compat hooks test-utils

Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration .
ERROR: Bad resource ID

The React error message is expected, but the last one ERROR: Bad resource ID is not.

Version: Deno 1.42.4 (git https://github.com/denoland/deno/commit/5294885a5a411e6b2e9674ce9d8f951c9c011988 2024-04-24)

SureshPradhana commented 6 months ago

I encountered similar error while testing issue #23525

{
    "scripts": {
        "all": "npm-run-all foo:a foo:b",
        "foo:a": "echo 'a'",
        "foo:b": "echo 'b'"
    },
    "dependencies": {
        "npm-run-all": "^4.1.5"
    }
}
DENO_FUTURE=1 deno task all  
Task all npm-run-all foo:a foo:b

> foo:a
> echo 'a'

a
ERROR: Bad resource ID