'My VueJS devtools do not show for some webpages, but it does for others. Why is this happening?

I have installed the vue js extension and for some other pages I created, it works But for my current website, it does not show on the inspect elements tab, although the vue js still runs successfully

If needed, here is my html and js for the website in which the devtools does not show

<!doctype html>
<html lang="en">
  <head>
    <title>Title</title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <link rel="stylesheet" href="styles.css">
    <!-- Bootstrap CSS -->  
  </head>
  <body class="container mt-4">
    <div id="app">
      <h2>{{name}}</h2>
    </div>
  </body>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>  
    <script src="script.js"></script>
</html>


Solution 1:[1]

Go to the directory with your index.html + JS files, then run npx serve and you'll see the devtools pop.

You need to run a lightweight server to serve the files properly, this simple solution will do the job and display the devtools accordingly.

Also, try to toggle your devtools (hide and show them back).
Or kill and bring back the tab again, sometimes it needs it.

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