tslog icon indicating copy to clipboard operation
tslog copied to clipboard

Bug: [BUG] Firefox logs do not interpret char codes

Open wsw70 opened this issue 8 months ago • 1 comments

Describe the bug When logging client-side, the logs show ANSI sequences (car sequences for colors, font weights, ...) instead of the the effect of that sequence (like it is on server side)

To Reproduce

Log on a client page

Screenshots

This is what is visible verbatim in the console:

�[37m2025-04-18 12:07:09.687�[39m�[0m�[0m	�[32m�[1mDEBUG�[22m�[39m�[0m�[0m	�[37m/_nuxt/node_modules/.cache/vite/client/deps/tslog.js:926�[39m�[0m�[0m�[1m�[37m�[39m�[22m�[0m�[0m	route sequence: /date → /events 

Additional context

The same problem is on Safari: https://github.com/fullstack-build/tslog/issues/297

Node.js Version v22.14.0

OS incl. Version Windows 11, Firefox 137

wsw70 avatar Apr 18 '25 12:04 wsw70

Also see https://github.com/fullstack-build/tslog/issues/277#issuecomment-1888717927

wsw70 avatar Apr 18 '25 12:04 wsw70