esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

Failed to import - unsupported-nodejs-builtin-module repl

Open DreamTexX opened this issue 3 years ago • 2 comments

Failing module

  • npm: https://www.npmjs.com/package/ts-node
import { } from "https://cdn.esm.sh/v58/[email protected]";

Error message

After running deno run I get this:

Download https://cdn.esm.sh/error.js?type=unsupported-nodejs-builtin-module&name=repl&importer=ts-node
Check file:///home/***/test/main.ts
error: Import 'https://cdn.esm.sh/error.js?type=unsupported-nodejs-builtin-module&name=repl&importer=ts-node' failed: 500 Internal Server Error
    at https://cdn.esm.sh/v58/[email protected]/deno/ts-node.js:2:424

Additional info

  • esm.sh version: v58
  • Deno version: 1.16.2

DreamTexX avatar Nov 25 '21 12:11 DreamTexX

repl isn't implemented yet in deno_std

https://github.com/denoland/deno_std/tree/main/node

talentlessguy avatar Nov 26 '21 08:11 talentlessguy

There is a esm.sh/repl can i use this somehow or is this something different? Tried with ?alias and ?deps but that does not seem work

DreamTexX avatar Nov 26 '21 11:11 DreamTexX