esm.sh
esm.sh copied to clipboard
Failed to import - @tinyhttp/app
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
v66 still not works:
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'
ah yeah it has two separate interfaces for IncomingMessage
I guess then until it gets merged together
It works fine now