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.

Different output in node vs in browser?

See original GitHub issue

This may be more of a question than a bug report, but I can’t find this in the docs. I’m precompiling my color manipulation so it doesn’t bog runtime and I’m getting a different toString() output in node vs in browser.

new Color('#ffff33').to('hsl').toString()

Outputs strings color(hsl 60 100 60) in node and hsl(60 100% 60%) in browser. What’s the intended way to get the CSS-accepted format in node?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mystrdatcommented, Nov 4, 2022

So to summarize, it seems that the gist of the issue is this bug that’s overwriting your processFormat function with the getPath function in esbuild, which was fixed in 0.12.17. Vite uses a recent version but Vanilla Extract is still on 0.11.*. Hopefully the authors will update soon. Case closed, thank you very much for your time Lea!

1reaction
LeaVeroucommented, Nov 3, 2022

Thank you so much for tracking this down!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to pass Node.js Output to Web Interface ? - GeeksforGeeks
Output : To run node server, go to http://localhost:5000 in browser to see output. node index.js.
Read more >
Different output in Node and browser - javascript
console.log only returns enumerable properties. But if you look with Object.getOwnPropertyNames(person) in node, you will see age as well. What ...
Read more >
Node js Tutorial | Create Server & Output in Browser - YouTube
Learn How to check Node js program output in the browser by create server using http module. This is Node. js tutorial for...
Read more >
Output to the command line using Node.js
Basic output using the console module. Node.js provides a console module which provides tons of very useful ways to interact with the command...
Read more >
node.js and browser .. different output pdf · Issue #1858 - GitHub
I use node.js and browser Have the same font and the same code I made it .. but I got another pdf like...
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