Live Preview not Working
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.
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?
That is the URL i am using. It's only live preview which is not working.
Server logs:

That is the URL i am using. It's only live preview which is not working.
Please update the below questions
- Output when you run
npm run servein terminal before loading in browser - The address you type in the address bar in browser
- 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.
Closing as inactive.