node-html-to-image icon indicating copy to clipboard operation
node-html-to-image copied to clipboard

deno punycode not found issue

Open myarcana opened this issue 2 years ago • 1 comments

I'm trying to use this module in deno using Skypack like this

import * as nodeHtmlToImage from "https://cdn.skypack.dev/node-html-to-image";

nodeHtmlToImage({
  output: './image.png',
  html: '<html><body>Hello world!</body></html>'
})
  .then(() => console.log('The image was created successfully!'))
  

but I'm getting some dependency-related punycode error:

error: Uncaught Error: [Package Error] "punycode" does not exist. (Imported by "puppeteer-cluster").
throw new Error("[Package Error] \"punycode\" does not exist. (Imported by \"puppeteer-cluster\").");
      ^
    at https://cdn.skypack.dev/error/node:punycode?from=puppeteer-cluster:14:7

Do you know how I can use node-html-to-image from within deno?

myarcana avatar Jan 07 '23 22:01 myarcana

Hello @myarcana 👋

Thank you for opening this issue. I don't know deno at all. Hope someone that uses both will be able to answer to you 🤞

If you find a solution don't forget to post here, please 🙏

frinyvonnick avatar Jan 18 '23 09:01 frinyvonnick