'I have my axios calls data printed in the terminal

I don't know how to explain it better: I'm using Visual Studio Code, Nuxt and Axios, and whenever I refresh my app in the browser I get all the content of my axios call printed in the vsc terminal.

I think I may have made some changes in the google inspector but I'm not sure.

first picture of vsc terminal

second picture of vsc terminal



Solution 1:[1]

Nothing strange here, Nuxt is running on both client side and server side. Here, you have a console.log probably called in a context when both are available.

On top of that, the initial request is always coming from the server hence why you can see it in your terminal.

Similar to a Node.js app, the output of your console.log is on the "backend" aka you terminal here.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 kissu