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

Failed to import - jiti

Open suasgn opened this issue 2 years ago • 1 comments

Failing module

  • GitHub: https://github.com/unjs/jiti
  • npm: https://www.npmjs.com/package/jiti
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&[email protected] net::ERR_ABORTED 500 (Internal Server Error)
        
        
GET https://esm.sh/error.js?type=unsupported-node-builtin-module&name=v8&[email protected] net::ERR_ABORTED 500 (Internal Server Error)

Additional info

  • esm.sh version: v135
  • Browser version: Microsoft Edge Version 119.0.2151.97 (Official build) (64-bit)

suasgn avatar Dec 03 '23 16:12 suasgn

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

suasgn avatar Jan 24 '24 14:01 suasgn