GithubHelp home page GithubHelp logo

Comments (8)

andreamah avatar andreamah commented on June 15, 2024

Can you open the developer tools? In the command palette, run Developer: Toggle Developer Tools.

from vscode-livepreview.

chall1123 avatar chall1123 commented on June 15, 2024

Can you open the developer tools? In the command palette, run Developer: Toggle Developer Tools.
@andreamah i can open developer tools, i used remote ssh extension,vscode work in linux
image

from vscode-livepreview.

sultanmyrza avatar sultanmyrza commented on June 15, 2024

Same thing here

In the beginning live preview was working ok. However after finishing mdn PWA tutorial I started doing 2nd mdn PWA tutorial . I started by creating new directory and new index.hml

Here is the contents of index.html
<!DOCTYPE html>
<html lang="en">
  <head>
    <head>
      <meta charset="utf-8" />
      <title>js13kGames A-Frame entries</title>
      <meta
        name="description"
        content="A list of A-Frame entries submitted to the js13kGames 2017 competition, used as an example for the MDN articles about Progressive Web Apps."
      />
      <meta name="author" content="end3r" />
      <meta name="theme-color" content="#B12A34" />
      <meta name="viewport" content="width=device-width, initial-scale=1" />
      <meta
        property="og:image"
        content="https://js13kgames.com/img/js13kgames-banner.png"
      />
      <link rel="icon" href="favicon.ico" />
      <link rel="stylesheet" href="style.css" />
      <link rel="manifest" href="js13kpwa.webmanifest" />
      <script src="data/games.js" defer></script>
      <script src="app.js" defer></script>
    </head>
  </head>
  <body>
    <header>
      <p>
        <a href="https://js13kgames.com" class="logo">
          <img src="img/js13kgames.png" alt="js13kGames" />
        </a>
      </p>
    </header>
    <main>
      <h1>js13kGames A-Frame entries</h1>
      <p class="description">
        <a href="https://js13kgames.com/aframe">A-Frame category</a> in the
        <a href="https://2017.js13kgames.com">js13kGames 2017</a> competition.
        You can
        <a href="https://github.com/mdn/pwa-examples/blob/main/js13kpwa"
          >fork js13kPWA on GitHub</a
        >
        to check its source code.
      </p>
      <button id="notifications">Request dummy notifications</button>
      <section id="content">TODO: Content inserted in here</section>
    </main>
    <footer>
      <p>
        © js13kGames 2012-2018, created and maintained by
        <a href="https://end3r.com">Andrzej Mazur</a> from
        <a href="https://enclavegames.com">Enclave Games</a>.
      </p>
    </footer>
  </body>
</html>

However when I start live preview I see white screen. I open dev tools and here is the screenshot
Screenshot 2024-03-30 at 5 08 08 PM

I know Live Preview is in "preview mode" but team already did a great job. And I really enjoy using it but can't use it now.

from vscode-livepreview.

sultanmyrza avatar sultanmyrza commented on June 15, 2024

In my previous resonse it's using port :3000. And I change Live Preview to use port :3001 and it works as expected.

Screenshot 2024-03-30 at 7 33 25 PM

I can use Live Preview now however it's not best workaround since I will keep changin ports. Is there a way to clear Live Preview cache or something?

from vscode-livepreview.

chall1123 avatar chall1123 commented on June 15, 2024

In my previous resonse it's using port :3000. And I change Live Preview to use port :3001 and it works as expected.

Screenshot 2024-03-30 at 7 33 25 PM I can use Live Preview now however it's not best workaround since I will keep changin ports. Is there a way to clear Live Preview cache or something?

very good, I change Live Preview port number, my Live Preview extension can work normal,I hope your problem can also be solved

from vscode-livepreview.

sultanmyrza avatar sultanmyrza commented on June 15, 2024

@chall1123, glad it worked for you but I still feel it's not good workaround and feels like I'm "polluting" ports. Rather it would be nice if there were better "right" solution.

from vscode-livepreview.

andreamah avatar andreamah commented on June 15, 2024

Perhaps this is a good use case of #333, where there would be auto-finding of an IP address to prevent collisions.

from vscode-livepreview.

andreamah avatar andreamah commented on June 15, 2024

Alternatively, you can select a different IP address in livePreview.hostIP if you can't anticipate a free port on 127.0.0.1. Although Live Preview should have its own logic to try not to occupy a port that is already being hosted on.

from vscode-livepreview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.