Open lbguilherme opened 1 year ago
I assume this only happens with --node-modules-dir
flag, otherwise I can't repeat the problem.
Also I get the same error on both 1.30.3 and 1.31.0.
Sorry, I missed one step: you also need to have a package.json file.
This is a full repro:
npm init -y
echo 'import "npm:@sdkgen/node-runtime";' > index.ts
deno run -A index.ts
This fails on Deno 1.31.1 with:
The same import works on Deno 1.30.3, so this is a regression.
Importing
decimal.js
directly works, but not indirectly. Both modules are commonjs.