D
Deno

help

error Unsupported scheme node for module `nodemodule`. Supported schemes

PPixel10/9/2022
I'm trying to import a module using:
import { example } from "npm:example";
import { example } from "npm:example";
Inside example, there's this line:
import something from "module";
import something from "module";
I get this error on that very line:
error: Unsupported scheme "node" for module "node:module". Supported schemes: [
"data",
"blob",
"file",
"http",
"https",
]
error: Unsupported scheme "node" for module "node:module". Supported schemes: [
"data",
"blob",
"file",
"http",
"https",
]
UUUnknown User10/9/2022
Message Not Public
Sign In & Join Server To View
PPixel10/9/2022
Sure, will do
Found latest version cc3e2b9b1a7ccd6c671bc0b3813cf7e2b0d88b5c
Checking https://dl.deno.land/canary/cc3e2b9b1a7ccd6c671bc0b3813cf7e2b0d88b5c/deno-aarch64-apple-darwin.zip
Download could not be found, aborting
Found latest version cc3e2b9b1a7ccd6c671bc0b3813cf7e2b0d88b5c
Checking https://dl.deno.land/canary/cc3e2b9b1a7ccd6c671bc0b3813cf7e2b0d88b5c/deno-aarch64-apple-darwin.zip
Download could not be found, aborting
šŸ˜„ Love that That's so weird. The correct URL: https://dl.deno.land/canary/cc3e2b9b1a7ccd6c671bc0b3813cf7e2b0d88b5c/deno-x86_64-apple-darwin.zip It got thr wrong URL. I ran deno --upgrade canary
UUUnknown User10/9/2022
2 Messages Not Public
Sign In & Join Server To View
Bbartlomieju10/9/2022
that should work, if you can reproduce this reliably, please open an issue
PPixel10/9/2022
Opened https://github.com/denoland/deno/issues/16221 - I'm not sure about reproduce- but on my machine it's always the case no matter where I run it from Thank you for the suggestion
UUUnknown User10/9/2022
Message Not Public
Sign In & Join Server To View
PPixel10/9/2022
Ohh That's strange, but I'll switch to Codespaces and carry on
UUUnknown User10/9/2022
2 Messages Not Public
Sign In & Join Server To View
PPixel10/9/2022
ok on Canary, same thing I'm afraid So it seems reproducable: the file to run just has contents import "npm:assemblyscript/asc"; This doesn't work in the repl because afaik repl has no npm: atm
UUUnknown User10/9/2022
Message Not Public
Sign In & Join Server To View
PPixel10/9/2022
Wrote up a nice issue and a single command to reproduce the problem https://github.com/denoland/deno/issues/16223
GitHub
error: Uncaught (in promise) TypeError: Unsupported scheme "node" f...
Single step to reproduce Run this command: echo "import 'npm:assemblyscript/asc';" >> test.js && deno run --unstable -A test.js Error...
PPixel10/9/2022
:) Ty for the attention I've used arch too btw but it came with no wifi drivers and I couldn't download them due to no wifi Looks like the canary issue will result in a more informative error for M1 users- so we hopefully have two useful issues out of this
UUUnknown User10/9/2022
2 Messages Not Public
Sign In & Join Server To View
PPixel10/9/2022
Ah, nice, I'll edit that in Could you comment that in issue? to let Deno team know it's more reproducable
UUUnknown User10/9/2022
Message Not Public
Sign In & Join Server To View

Looking for more? Join the community!

Recommended Posts
esbuild_deno_loader importing Deno modulesA dependancy I use imports modules like "fs" and I want esbuild_deno_loader to treat them as externaStatic compilation of deno modulesIs there a way to statically compile libraries into the .js bundle instead of dynamically retrievingIs there a good dataframe library for deno?I use the nodejs bindings for pola.rs for now but I'd like to move from nodejs to deno. This is my l[resolved] CI failure TS2684Hey, I'm currently working on a pull request for the Astro project. Unfortunately the CI doesn't liktype a whole directory to make sure each file in the directory exports a default module of a type.Can you type a whole directory to make sure that every file in the directory is exporting a default help mehow do i get the contents of the html, i tried this, but its not loggingextract generic type of generic classhow to get typeof generic type in generic class ```ts class GenericClass<T> {} ``` i want to extractGithub Repository File Tree Generator based on Deno?Is there some project file tree generator written in TS / Deno?How to import the Image class to Deno Fresh?I'm trying to access an image's `naturalHeight` and `naturalWidth`. But when I construct the objectsub sub domain on deno.devIs it possible to create a sub sub domain with deno.dev, example, invite.my-bot.deno.dev, support.myhow to cli run node modules without --compatSo `deno run --compat` has now been removed in favor of `npm:` specifiers https://deno.com/blog/v1.2Intellisense on an import not working, works for friendI cannot for the life of me get `import * as bsdeno from "https://raw.githubusercontent.com/KivalEvaHow to create a broadcast system with streams and oak?i'm trying to create a simple "web-radio" to learn more about streams with deno and oak. i'm stuck oDeno.serveTls with self signed certificatei try to create a webserver but i cannot use self signed certificates, how can i solve this ? ```jReadableStream to JSONi cant seem to get a JSON out of the request.body i attached pictures for the front end JS request cdistinguis `netERR_CONNECTION_TIMED_OUT` from `netERR_CERT_AUTHORITY_INVALID`i get `net::ERR_CERT_AUTHORITY_INVALID` because i use self signed certs on the domain `localhost` nCommand doesn't work in deno task but works outside of deno taskThe command in question: ```(find . -name '*.js'; find . -name '*.as') | grep -v bundle | xargs wc -How do I patch a std api?Hello. This person posted in this command that they "patched" the `vm.isContext` function to returnMonkey patch Broadcast Channel to send messages to current contextEssentially what I want to do is be able to connect to `new BroadcastChannel("test_channel");` whichDynamically imported module evaluation is still pendingI'm very confused on the error i put as the title because in my program i'm trying to just import so