No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    console.log() not showing messages

    CLI
    2
    3
    1448
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      PhilWritesCode last edited by

      I used the CLI to create a vanilla Quasar app and then ran it using ‘quasar dev’. It ran just fine. I then went back and added some console.log() statements in various places to observe the loading order. Places like router/index.js, store/index.js, etc. When I run the app again using ‘quasar dev’, the app runs just fine as before, but I see no output from the console.log statements on the console. Is Quasar directing console output somewhere else, like a log file? How do I make console.log work?
      Thanks!

      1 Reply Last reply Reply Quote 0
      • P
        PhilWritesCode last edited by

        OK, now I get it. console.log() is done client-side, so it prints to the browser console, not the server. I was expecting to see messages in the shell where I ran ‘quasar dev’, as with a node.js application. Which leads to the question, does the Quasar app run entirely in the browser, or do some parts run server-side?

        1 Reply Last reply Reply Quote 0
        • nothingismagick
          nothingismagick last edited by

          @DeliciousPickle - the quasar-cli runs in a node environment, which is where the vue files are transpiled (changed) by babel and webpack to be normal html, css and js. This stuff is then sent to the brower. If you need tighter integration with node, then you will probably want to look into creating app extensions - or potentially making electron applications. All of that is covered pretty in depth in the docs.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post