webtorrent / webtorrent

⚡️ Streaming torrent client for the web

Home Page:https://webtorrent.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deno compatibility

uriva opened this issue · comments

commented

index.js:

import WebTorrent from "npm:webtorrent";

deno run index.js

gives

error: Uncaught SyntaxError: Unexpected token 'i', "import {cr"... is not valid JSON
commented

webtorrent doesn't support deno, you can try

import WebTorrent from "https://esm.sh/webtorrent"

but I won't guarantee it will work

commented

error: Import 'https://esm.sh/webtorrent@2.1.12' failed: 500 Internal Server Error

☹️

commented

what about the proposal here?
denoland/deno#16490

commented

image

and also this, deno is tripped by the import assertions