That's genuinely how the error appears in the browser's console.
Just looks like it thinks it's printing to terminal due to misconfiguration. Check out what went wrong or find the appropriate ansi --color/--no-color toggle.
Obviously browsers should add color codes support. JS frameworks should make color output optional. But this is hardly sufficient to say the language errors are uninformative. Just a bug with a logically straightforward solution.