esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

Failed to import - @tinyhttp/app

Open v1rtl opened this issue 3 years ago • 4 comments

We should use std/node/http.ts instead of stream-http for Deno environment. stream-http is no longer needed. See https://deno.land/std/node/http.ts

Failing module

  • GitHub: https://github.com/tinyhttp/tinyhttp
import { App } from 'https://esm.sh/@tinyhttp/app?pin=v64'

Error message

After running deno run I got this:

Download https://esm.sh/@tinyhttp/app?pin=v64
Uncaught SyntaxError: The requested module '/v64/[email protected]/deno/stream-http.bundle.js' does not provide an export named 'IncomingMessage'
    at async <anonymous>:2:18

Additional info

  • esm.sh version: 64
  • Deno version: 1.18

v1rtl avatar Jan 28 '22 13:01 v1rtl

v66 still not works:

Screenshot 2022-02-08 at 08 52 14

ije avatar Feb 08 '22 00:02 ije

just tried to move to deno.land/std/node/http.ts but failed:

error: Uncaught SyntaxError: The requested module 'https://deno.land/[email protected]/node/http.ts' does not provide an export named 'IncomingMessage'

ije avatar Feb 08 '22 02:02 ije

ah yeah it has two separate interfaces for IncomingMessage

v1rtl avatar Mar 07 '22 17:03 v1rtl

I guess then until it gets merged together

v1rtl avatar Mar 07 '22 17:03 v1rtl

It works fine now

v1rtl avatar Mar 09 '23 16:03 v1rtl