tslog
tslog copied to clipboard
Bug: [BUG] Firefox logs do not interpret char codes
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
Also see https://github.com/fullstack-build/tslog/issues/277#issuecomment-1888717927