esm-dev / esm.sh

A fast, smart, & global CDN for modern(es2015+) web development.
https://esm.sh
MIT License
3.12k stars 150 forks source link

Failed to import - jiti #773

Open suabahasa opened 11 months ago

suabahasa commented 11 months ago

Failing module

import jiti from "https://esm.sh/jiti"

Error message

After onload I got this:

GET https://esm.sh/error.js?type=unsupported-node-builtin-module&name=module&importer=jiti@1.21.0 net::ERR_ABORTED 500 (Internal Server Error)

GET https://esm.sh/error.js?type=unsupported-node-builtin-module&name=v8&importer=jiti@1.21.0 net::ERR_ABORTED 500 (Internal Server Error)

Additional info

suabahasa commented 9 months ago

It seems unjs/unenv provide the polyfill for the node:module and node:v8 module