-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream-browserify
#18
Comments
If Alternatively, esm.sh could use the |
i have a plan to provide all polyfills of nodejs internal module from |
I believe readable stream is getting (kind of) built in Deno support from it's maintainers. Might be something to look at. |
still happens on v47
|
on v50 I see this instead:
|
on v55 it's this:
|
same error on v57: deno eval 'import "https://esm.sh/[email protected]?dev&pin=v57"'
error: Uncaught TypeError: Class extends value undefined is not a constructor or null
var MultipartStream = class extends sandwich_stream_1.default {
^
at esm-build-3a32e3194a944ce6ceab7e19c7552bc1abaff33e-3acba49b/node_modules/telegraf/lib/core/network/multipart-stream.js (https://cdn.esm.sh/v57/[email protected]/deno/telegraf.development.js:1036:59)
at __require2 (https://cdn.esm.sh/v57/[email protected]/deno/telegraf.development.js:33:44)
at esm-build-3a32e3194a944ce6ceab7e19c7552bc1abaff33e-3acba49b/node_modules/telegraf/lib/core/network/client.js (https://cdn.esm.sh/v57/[email protected]/deno/telegraf.development.js:1077:30)
at __require2 (https://cdn.esm.sh/v57/[email protected]/deno/telegraf.development.js:33:44)
at esm-build-3a32e3194a944ce6ceab7e19c7552bc1abaff33e-3acba49b/node_modules/telegraf/lib/telegram.js (https://cdn.esm.sh/v57/[email protected]/deno/telegraf.development.js:1302:20)
at __require2 (https://cdn.esm.sh/v57/[email protected]/deno/telegraf.development.js:33:44)
at esm-build-3a32e3194a944ce6ceab7e19c7552bc1abaff33e-3acba49b/node_modules/telegraf/lib/telegraf.js (https://cdn.esm.sh/v57/[email protected]/deno/telegraf.development.js:1766:22)
at __require2 (https://cdn.esm.sh/v57/[email protected]/deno/telegraf.development.js:33:44)
at esm-build-3a32e3194a944ce6ceab7e19c7552bc1abaff33e-3acba49b/node_modules/telegraf/lib/index.js (https://cdn.esm.sh/v57/[email protected]/deno/telegraf.development.js:2447:22)
at __require2 (https://cdn.esm.sh/v57/[email protected]/deno/telegraf.development.js:33:44) |
it works on v135 now, safe to close |
Thank you for esm.sh, of all the things I tried this gets me the closest to running
telegraf
on Deno. But not close enough:telegraf
depends onsandwich-stream
, which has an.mjs
entry whichimport { Readable } from 'stream'
. This is legal:However,
stream-browserify
, used by esm.sh to ponyfillstream
, doesn't support it. I can open a PR, but only if @goto-bus-stop or another maintainer promises to actually review it.Otherwise, esm.sh should switch to better maintained ponyfill, perhaps https://deno.land/std/node/stream.ts?
The text was updated successfully, but these errors were encountered: