Ren Hiyama
Ren Hiyama13mo ago

Reejs not working on Deno v1.34

deno run -A npm:reejs
[INFO] Saving important data...
[TIP] If the error in your code is in any of the following extensions (.ts, .tsx, .jsx), kindly not focus on the line number as the line numbers depict the compiled code and not the original one. Add `DEBUG=true` to your environment variables to see the original code.
TypeError: Could not resolve 'node:repl' from 'file:///home/ren/.cache/deno/npm/registry.npmjs.org/@reejs/imports/2.1.13/nativeImport.js'.
Caused by:
[ERR_UNSUPPORTED_ESM_URL_SCHEME] Only file and data URLS are supported by the default ESM loader. Received protocol 'node'
at async NativeImport (file:///home/ren/.cache/deno/npm/registry.npmjs.org/@reejs/imports/2.1.13/nativeImport.js:15:25)
at async file:///home/ren/.cache/deno/npm/registry.npmjs.org/reejs/0.9.21/src/cli/cmds/repl.js:6:12 {
code: "ERR_MODULE_NOT_FOUND"
}
deno run -A npm:reejs
[INFO] Saving important data...
[TIP] If the error in your code is in any of the following extensions (.ts, .tsx, .jsx), kindly not focus on the line number as the line numbers depict the compiled code and not the original one. Add `DEBUG=true` to your environment variables to see the original code.
TypeError: Could not resolve 'node:repl' from 'file:///home/ren/.cache/deno/npm/registry.npmjs.org/@reejs/imports/2.1.13/nativeImport.js'.
Caused by:
[ERR_UNSUPPORTED_ESM_URL_SCHEME] Only file and data URLS are supported by the default ESM loader. Received protocol 'node'
at async NativeImport (file:///home/ren/.cache/deno/npm/registry.npmjs.org/@reejs/imports/2.1.13/nativeImport.js:15:25)
at async file:///home/ren/.cache/deno/npm/registry.npmjs.org/reejs/0.9.21/src/cli/cmds/repl.js:6:12 {
code: "ERR_MODULE_NOT_FOUND"
}
When will deno support node:repl ? Are there any 3rd party polyfills that let me just the same repl support like nodejs?
0 Replies
No replies yetBe the first to reply to this messageJoin