question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conflict in case of instructions regarding output tag

See original GitHub issue

`const express = require(‘express’); const router = express.Router(); const nodeHtmlToImage = require(‘node-html-to-image’);

router.get(/api/tweet/render, async function(req, res) { const image = await nodeHtmlToImage({ html: ‘<html><body><div>Check out what I just did! #cool</div></body></html>’ }); res.writeHead(200, { ‘Content-Type’: ‘image/png’ }); res.end(imgBinary, ‘binary’); });` Here in this sample, you have not given the output tag. But according to the code you mentioned that if there is no output tag it will throw error. Then you should make the use of output tag optional.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
shankha007commented, Apr 21, 2020

You better do it for now. I am little bit busy in my project…

On Tue, Apr 21, 2020 at 4:25 PM Yvonnick FRIN notifications@github.com wrote:

👋 @shankha007 https://github.com/shankha007 I need this before publishing a new version. Do you think you have time to do it in the next few days or should I do it myself?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/frinyvonnick/node-html-to-image/issues/12#issuecomment-617105872, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6T7A7ZRMQAFC5KHI2ZM43RNV3RHANCNFSM4MKO7CUQ .

0reactions
frinyvonnickcommented, May 12, 2020

This was fixed in #16 and published in 2.0.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Conflict Resolution Rules Explained - Medium
When there are two different declarations for the same element but they focus on different attributes, the styles simply merge, and the element...
Read more >
Computer Organization and Architecture | Pipelining | Set 2 ...
A resource conflict is a situation when more than one instruction tries to access the same resource in the same cycle. A resource...
Read more >
Handling common HTML and CSS problems - MDN Web Docs
Note: One common problem with CSS and HTML arises when different CSS rules begin to conflict with one another.
Read more >
An Introduction to RSLogix5000 Tags - PLCdev
Tags are the method for assigning and referencing memory locations in ... This file stores the state of output terminals for the controller....
Read more >
Set-Associative Cache - an overview | ScienceDirect Topics
The cache reads blocks from both ways in the selected set and checks the tags and valid bits for a hit. If a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found