esm.sh
esm.sh copied to clipboard
Failed to import - [email protected]
Failing module
- GitHub: https://github.com/pngjs/pngjs
- npm: https://www.npmjs.com/package/pngjs
import pngjs from "https://esm.sh/[email protected]";
const array = new Uint8Array(await Deno.readFile("image.png"));
pngjs.PNG.sync.read(data);
Error message
After running deno run
I got this:
error: Uncaught TypeError: e.readUInt32BE is not a function
at _e.exports.E._parseChunkBegin (https://esm.sh/v125/[email protected]/denonext/pngjs.mjs:2:8384)
at Ne.exports.qe.process (https://esm.sh/v125/[email protected]/denonext/pngjs.mjs:2:26071)
at Ge.exports (https://esm.sh/v125/[email protected]/denonext/pngjs.mjs:2:27115)
at Object.X.read (https://esm.sh/v125/[email protected]/denonext/pngjs.mjs:2:28213)```
Additional info
- esm.sh version: v129
- Deno version: 1.35.2