I can't download fetch

Can you help me with this? I have just started my deno.js trials 🙂
No description
No description
M
marvinh.19d ago
There is no need to use a dependency for fetch(). That's a built-in global function in Deno, similar to the one in the browser. So simply remove the import fetch from "..." statement
D
Daimon.19d ago
Now I'm getting an error like this
D
Daimon.19d ago
No description
D
Daimon.19d ago
No description
M
marvinh.19d ago
Yeah that's correct. The oak module doesn't export a variable called WebSocket. That's what this error means. The WebSocket variable is a global similar to the browser. So you don't need to import WebSocket from anywhere. Deleting that import statement should resolve this
D
Daimon.19d ago
Thank you, if I have another problem, I will add it here :) Thank you so much for your help
L
lucsoft18d ago
Yeah in deno the goal is to use "The Platform" @Daimon so most of the Browser api like fetch, Response, Request, uint8array and all that is already included so you don't really need to deal with the proprietary nature of NodeJS API Also have a look into https://deno.land/std@0.221.0?doc The std is a collection of helpfull additions that can be used by deno so if you need to parse like a csv the std got your covered so you don't need to choose f rom these 100 diffrent csv parses :D
D
Daimon.18d ago
I can describe the project I have as follows Tracks the vanity urls of the servers where my discord account is located when anything is changed or removed it pulls to my server But since a lot of people have this problem, I need to downgrade MS and Deno.js came to my mind as faster. Even though I am currently running it on VDS, which is located in the US-East of America, both codes with node.js are received faster than deno.js. Is there anything you can recommend to send the URL to the server?
L
lucsoft18d ago
i heard UDP+QUIC is the new kid in town
D
Daimon.18d ago
I know more about cyber security, but I don't know much about coding, I'm trying to write by researching. I'm a little behind because I don't have any friends who can help or know. If you want to take a look at my codes, I can send them here or dm.
L
lucsoft18d ago
post it here
D
Daimon.18d ago
That's all my codes
L
lucsoft18d ago
are you rocking discord without protection? Why don't use use a discord wrapper, does everything for you
D
Daimon.18d ago
What do you mean by wrapper? I don't know much since I haven't seen any examples yet.
D
Daimon.18d ago
Thank you so much for your help I didn't succeed
L
lucsoft17d ago
sorry can't help you ethically here.
More Posts
Passing Data in FreshAs a context, I'm currently making a quiz-like page. I have a page that GET a quiz_id when opened. deno in rustWhile working on some feature. We have found a bug. Here is the bug: https://github.com/tailcallhq/tSignals & Data Fetching1. Should I declare useSignal on route or island? 2. How to fetch data? Make an async route? Do useEError Using Google PubSub With DenoHi there, I am trying to work with PubSub using Deno. I am able to access and create new PubSub inDeno deploy IPHey! Is that possible to get the IP address of a deployment on Deno deploy? The backend we host theUbuntu Server HTTPSHow can I add https i Ubuntu Server to run Deno API over https? Without using Apache. I run deno coUse Deno as a type checker for a front-end project?Hey. I have a need to increase the speed of typechecking my frontend project. I'm not sure, but it sLogger Structure argsI am implementing a simple access log in Deno Fresh, but I am not quite sure how to use the standardAdd static font files as a fresh pluginHello! I'm creating a component library for Fresh. I'm in the part of setting up the plugin part of Compiling code breaks it (except on Linux)error: [ERR_MODULE_NOT_FOUND] Cannot find module "C:\Users\Eris\AppData\Local\Temp\deno-compile-llm-Interface with unknown amount of keys but all the same typeHow do i create an interface/type that can have unlimited keys but the values are all the same type?How to open a file as blob?Docs for Blob (https://deno.land/api@v1.42.0?s=Blob) say that `File` implements `Blob`. But the docsDeno deploy running my code multiple timesIm hosting a small discord bot on deno deploy but for some reason its firing the events multiple timvalue too large in kv (30kb)I'm getting a value too large error when setting a value in KV (on deploy) even though the value is How to work without a tsconfig.json in VSCode? Getting typescript errors due to React.``` Cannot find name 'Map'. Do you need to change your target library? Try changing the 'lib' compilupdate deno version on Alpineon alpine the version of deno is 1.38.1 https://pkgs.alpinelinux.org/packages?name=deno is there a rDeno blog deployment failureHi all, recently tried to make a new blog post on personal blog, however now the deployment fails (nFresh 1.6 - Deno Deploy - TailwindDeploying my project on deno deploy is not working. Does anyone have the same issue ? I am using taAnalyze dependencies for deno compileIs there a way to analyze the dependencies that is added when running deno compile? My compiled binaHow to install jupyter using deno v1.41.xAccording to the documentation https://docs.deno.com/runtime/manual/tools/jupyter the command should