็ฅž
็ฅžโ€ข17mo ago

npm:undici doesn't work

https://github.com/denoland/deno/issues/16710 Marked as resolved by this issue but does not work in my environment
import { request } from "npm:undici"
await request("https://jsonplaceholder.typicode.com/todos/1")
import { request } from "npm:undici"
await request("https://jsonplaceholder.typicode.com/todos/1")
deno 1.34.2 (release, x86_64-pc-windows-msvc) v8 11.5.150.2 typescript 5.0.4
GitHub
Undici doesn't work with npm specifiers ยท Issue #16710 ยท denoland/d...
Undici returns a ConnectTimeoutError when attempting any request. Many npm modules depend on undici, node's fetch api implementation used as a module. Reproducible example: import { request } f...
3 Replies
๐•’๐•ฃ๐•ค๐•™
curious if there's a valid use case for undici on deno since fetch has been here from the start
็ฅž
็ฅžโ€ข17mo ago
I want discordjs compatibility We want to start with @discordjs/rest, a package that only operates on rest api.
็ฅž
็ฅžโ€ข17mo ago
npm
@discordjs/rest
The REST API for discord.js. Latest version: 1.7.1, last published: a month ago. Start using @discordjs/rest in your project by running npm i @discordjs/rest. There are 226 other projects in the npm registry using @discordjs/rest.