Home node.js Console does not work on a specific site

Console does not work on a specific site

Author

Date

Category

I make a project on Node.js, Express, Handlebars. I use TypeScript. Start the server for 3000 port. Console is not displayed by console.log (none in one browser), but in the terminal prints. On other sites everything works


Answer 1

Write in the console just CONSOLE.LOG (that is, we just see the function A E call it).

If you see ƒ () {} – it means someone rebuilt the console to hide any output into the console. Usually add it only for the production code, but depends on the settings of the collector.

If you see ƒ log () {[Native Code]} – it means the console works normally and the problem elsewhere.


Answer 2

In the browser console, messages will be displayed, which are displayed by the code running in the browser (on the client side). If Console.log () is performed on the server side, then the output will be in the server console.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions