Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live Server Get Document Error #2987

Open
resturaymond opened this issue Aug 15, 2024 · 0 comments
Open

Live Server Get Document Error #2987

resturaymond opened this issue Aug 15, 2024 · 0 comments

Comments

@resturaymond
Copy link

when I input this code

<html lang="en">
  <head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>ortugaptek</title>
    <link rel="stylesheet" href="style.css"/>

    <!-- font -->
    <link rel="preconnect" href="https://fonts.googleapis.com"/>
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap"
    rel="stylesheet"/>

    <!-- feather icon -->
    <script src="https://unpkg.com/feather-icons"></script>
    
  </head>
  <body>
    <!-- Navbar -->
    <a href="#" class="navbar-logo">test<span>gaptek</span></a>
    <div class="navbar-nav">
      <a href="#">Home</a>
      <a href="#belanja">Belanja</a>
      <a href="#about">About</a>
      <a href="#kontak">Kontak</a>
    </div>
    <div class="navbar-extra">
      <a href="search"><i data-feather="search"></i></a>
      <a href="shopping-cart"><i data-feather="shopping-cart"></i></a>
      <a href="send"><i data-feather="send"></i></a>
    </div>
    <!-- Navbar End -->
  </body>
  <script>
    feather.replace();
  </script>
</html>

With CSS

    --primary: #FEFBF6;
    --primary2: #FDE49E;
    --bg: #FFDE4D;
    --bg2: #DD761C;
    --text: #493323;
}
/* Bagian dasar pada html */
* {
    margin: 0;
    padding: 0;
    display: flex;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}

body {
    font-family: 'Open Sans';
    background-color: var(--primary);
    color: var(--text);
} ```

I Always got this error

``` // <![CDATA[ <-- For SVG support if ('WebSocket' in window) { (function () { function refreshCSS() { var sheets = 
[].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i < 
sheets.length; ++i) { var elem = sheets[i]; var parent = elem.parentElement || head; parent.removeChild(elem); var rel = elem.rel; if 
(elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") { var url = 
elem.href.replace(/(&|\?)_cacheOverride=\d+/, ''); elem.href = url + (url.indexOf('?') >= 0 ? '&' : '?') + '_cacheOverride=' + (new 
Date().valueOf()); } parent.appendChild(elem); } } var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://'; var address = 
protocol + window.location.host + window.location.pathname + '/ws'; var socket = new WebSocket(address); socket.onmessage = 
function (msg) { if (msg.data == 'reload') window.location.reload(); else if (msg.data == 'refreshcss') refreshCSS(); }; if (sessionStorage 
&& !sessionStorage.getItem('IsThisFirstTime_Log_From_LiveServer')) { console.log('Live reload enabled.'); 
sessionStorage.setItem('IsThisFirstTime_Log_From_LiveServer', true); } })(); } else { console.error('Upgrade your browser. This Browser is 
NOT supported WebSocket for Live-Reloading.'); } // ]]> ```

Browser:
- Chrome (desktop) Version 127.0.6533.120

For Tooling issues:

- Live Server: v5.7.9
- Platform:  Windows
- Visual Studio Code: 1.92

I have tried all of tutorial and change some code but the error still happen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant