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

Failed to import - http2 (builtin node module)

Open hazae41 opened this issue 4 years ago • 1 comments

Failing module

  • GitHub: https://github.com/fauna/faunadb-js
  • npm: faunadb / http2
import { Client, Now } from "https://esm.sh/faunadb"

Error message

After running deno run I get this:

Download https://cdn.esm.sh/error.js?type=unsupported-nodejs-builtin-module&name=http2&importer=faunadb
Download https://cdn.esm.sh/v51/deno_std_node_url.js
Check file:///C:/Users/hugog/Documents/stickorz/fauna/api/main.ts
error: Import 'https://cdn.esm.sh/error.js?type=unsupported-nodejs-builtin-module&name=http2&importer=faunadb' failed: 500 Internal Server Error
    at https://cdn.esm.sh/v51/[email protected]/deno/faunadb.js:2:128

Additional info

  • esm.sh version: v55
  • Deno version: 1.16.4

hazae41 avatar Dec 09 '21 22:12 hazae41

there's no http2 module yet in deno_std

v1rtl avatar Dec 11 '21 13:12 v1rtl

There is now an http2 module in https://deno.land/[email protected]/node/http2.ts

Eusebiotrigo avatar Feb 20 '23 12:02 Eusebiotrigo

already supported in fact,check https://github.com/ije/esm.sh/blob/4539a4c178c8d204f1e58109204ba5da5f3df8a8/server/nodejs.go#L131

ije avatar Feb 21 '23 03:02 ije