phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

Live Preview not Working

Open VedaantS opened this issue 3 years ago • 5 comments

Describe the bug

Live Preview is simply failing to work on my machine on my personal build (although it works just fine on phcode.dev).

Server error message: [2023-01-16T06:19:22.632Z] 192.168.1.116 "GET /src/phoenix/vfs/PHOENIX_LIVE_PREVIEW_PH-854675978410/fs/local/default%20project/index.html" Error (404): "Not found"

(to load the index.html for default project in live preview).

Reproduction

Build according to instructions and run like normal.

Expected behavior

For live preview to work...?

OS, Browser and Phoenix versions

OS: MacOS Computer: 2020 Macbook Pro, M1 Version: Release 3.1.1 Browser: Google Chrome 108.0.5359.124

logs or debug stack trace if any

(Terminal)
[2023-01-16T06:19:22.630Z] 192.168.1.116 "GET /src/phoenix/vfs/PHOENIX_LIVE_PREVIEW_PH-854675978410/fs/local/default%20project/index.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
[2023-01-16T06:19:22.632Z] 192.168.1.116 "GET /src/phoenix/vfs/PHOENIX_LIVE_PREVIEW_PH-854675978410/fs/local/default%20project/index.html" Error (404): "Not found"
[2023-01-16T06:19:25.572Z] 192.168.1.116 "GET /src/phoenix/vfs/PHOENIX_LIVE_PREVIEW_PH-854675978410/fs/local/default%20project/index.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
[2023-01-16T06:19:25.573Z] 192.168.1.116 "GET /src/phoenix/vfs/PHOENIX_LIVE_PREVIEW_PH-854675978410/fs/local/default%20project/index.html" Error (404): "Not found"




(Browser)
Failed to load resource: the server responded with a status of 404 (Not Found)
index.html:1          Failed to load resource: the server responded with a status of 404 (Not Found)
index.html:1          Failed to load resource: the server responded with a status of 404 (Not Found)

Additional context

I just want to know what I'm doing wrong.

VedaantS avatar Jan 16 '23 06:01 VedaantS

Please launch http://localhost:8000/src after running npm run serve from the terminal.

  • What is the URL you are trying to load it from?

abose avatar Jan 16 '23 17:01 abose

That is the URL i am using. It's only live preview which is not working.

VedaantS avatar Jan 19 '23 00:01 VedaantS

Server logs: Screen Shot 2023-01-18 at 7 02 12 PM

VedaantS avatar Jan 19 '23 00:01 VedaantS

That is the URL i am using. It's only live preview which is not working.

Please update the below questions

  1. Output when you run npm run serve in terminal before loading in browser
  2. The address you type in the address bar in browser
  3. A full screenshot of the browser with dev tools in Chrome incognito window will help more.

Are you building from source to contribute or anything else btw, just curious of the use case.

abose avatar Jan 19 '23 01:01 abose

Closing as inactive.

abose avatar Apr 30 '23 15:04 abose