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

Failed to import - @nodefill/primordials subpaths

Open jcbhmr opened this issue 2 years ago • 1 comments

Failing module

  • GitHub: https://github.com/nodefill/primordials
  • npm: https://www.npmjs.com/package/@nodefill/primordials
// DevTools console on esm.sh
let m; m = await import("https://esm.sh/@nodefill/primordials/ArrayIsArray.js");

Error message

After running ☝ in the DevTools on the esm.sh homepage, I get this error:

VM28:1     GET https://esm.sh/@nodefill/[email protected]/ArrayIsArray.js net::ERR_ABORTED 500
(anonymous) @ VM28:1
Uncaught TypeError: Failed to fetch dynamically imported module: https://esm.sh/@nodefill/primordials/ArrayIsArray.js

There's also this JS code at https://esm.sh/@nodefill/primordials/ArrayIsArray.js

/* esm.sh - error */
throw new Error("[esm.sh] " + "parseCJSModuleExports: Package path ./ArrayIsArray is not exported from package /esmd/npm/@nodefill/[email protected]/node_modules/@nodefill/primordials (see exports field in /esmd/npm/@nodefill/[email protected]/node_modules/@nodefill/primordials/package.json)");
export default null;

Additional info

  • esm.sh version: whatever the latest one is?
  • Browser version: Google Chrome 114.0.5735.134 (Official Build) (64-bit) (cohort: Stable)

jcbhmr avatar Jul 01 '23 23:07 jcbhmr

An interesting thing is that import("https://esm.sh/@nodefill/primordials") works just fine. image

...but the sub-path-thingie imports like import("@nodefill/primordials/ArrayIsArray.js") don't. image

Another interesting thing is that https://esm.run works for all of these. image image

jcbhmr avatar Jul 01 '23 23:07 jcbhmr