Comments (8)
Can you open the developer tools? In the command palette, run Developer: Toggle Developer Tools
.
from vscode-livepreview.
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
from vscode-livepreview.
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
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.
In my previous resonse it's using port :3000. And I change Live Preview to use port :3001 and it works as expected.
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.
In my previous resonse it's using port :3000. And I change Live Preview to use port :3001 and it works as expected.
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.
@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.
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.
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)
- Can't find the live preview icon HOT 15
- Open from a script HOT 13
- it is not working HOT 1
- The IP address "192.168.XXX.9" cannot be used to host the server. Using default IP 127.0.X.X. HOT 2
- it is not working properly HOT 1
- Live Preview Button not showing HOT 8
- Feature Request: Support for multiple Live Preview Windows HOT 1
- live preview not showing up while using Github Repositories extension HOT 1
- preview HOT 3
- Click on tags/elements in HTML and jump to it in HTML document HOT 2
- live server HOT 1
- Launch as http://localhost instead of http://127.0.0.1? HOT 6
- PHP support HOT 1
- It becomes Dark!!! HOT 1
- xaml后续能支持吗 HOT 1
- An unknown error occurred. Please consult the log for more details. HOT 2
- Not working HOT 11
- Problem with "charset=ISO-8859-1" HOT 6
- Add a "Start Preview" button HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-livepreview.