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

Failed to import - date-fns pinned at v86

Open rherrmann opened this issue 3 years ago • 0 comments

Failing module

  • GitHub: https://github.com/date-fns/date-fns
  • npm: date-fns
import { addDays } from "https://esm.sh/[email protected]?pin=v86";

Error message

After running deno test I got this:

error: TS2306 [ERROR]: File 'https://esm.sh/v86/[email protected]/typings.d.ts' is not a module.
} from "https://esm.sh/[email protected]?pin=v86";

The typings URL returns:

/* esm.sh - error */
throw new Error("[esm.sh] " + "open /tmp/esm-build-b7dfdfcbf4046ee7bd9ece86b0093b0d7e8f70c6-86ca17b7/node_modules/date-fns/typings.d.ts'.js: no such file or directory");
export default null;

Additional info

  • esm.sh version: v86
  • Deno version: 1.23.0

rherrmann avatar Jun 22 '22 12:06 rherrmann