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

deno check w/ byonm shows resolver error for micromatch npm package #23507

Open
dsherret opened this issue Apr 23, 2024 · 0 comments
Open

deno check w/ byonm shows resolver error for micromatch npm package #23507

dsherret opened this issue Apr 23, 2024 · 0 comments
Labels
bug Something isn't working correctly node compat

Comments

@dsherret
Copy link
Member

dsherret commented Apr 23, 2024

// main.ts
import * as foo from "npm:[email protected]";

console.log(foo);
{
  "unstable": ["byonm"]
}
{
  "dependencies": {
    "micromatch": "^4.0.5"
  }
}
  1. npm install
  2. deno run main.ts -- ok
  3. deno run --check main.ts -- fail
% deno run --check main.ts
error: Failed resolving types. Failed resolving package subpath for 'npm:[email protected]' in '/Users/david/dev/scratch/node_modules/micromatch'.
    at file:///Users/david/dev/scratch/main.ts:1:22
% deno info main.ts
local: /Users/david/dev/scratch/main.ts
emit: /Users/david/Library/Caches/deno/gen/file/Users/david/dev/scratch/main.ts.js
type: TypeScript
dependencies: 1 unique
size: 63B

file:///Users/david/dev/scratch/main.ts (63B)
├── file:///Users/david/dev/scratch/node_modules/micromatch/index.js (unknown)
└── Failed resolving package subpath for 'npm:[email protected]' in '/Users/david/dev/scratch/node_modules/micromatch'. (resolve error)
scratch % deno run --check main.ts
error: Failed resolving types. Failed resolving package subpath for 'npm:[email protected]' in '/Users/david/dev/scratch/node_modules/micromatch'.
    at file:///Users/david/dev/scratch/main.ts:1:22
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 node compat
Projects
None yet
Development

No branches or pull requests

1 participant