-
Notifications
You must be signed in to change notification settings - Fork 34k
Description
Type: Bug
The error 127.0.0.1/:1 Failed to load resource: the server responded with a status of 404 (NOT FOUND) confirms that Flask is running, but it cannot find or serve your frontend's index.html.
This means either:
The frontend build did not produce a dist/index.html, or
Flask is not pointing to the correct static folder.
Please do the following:
Check that the file frontend/dist/index.html exists and is not empty.
If it does not exist, run:
cd frontendnpm run build
If it does exist, confirm that your app.py has this line (it should):
static_dir = os.path.join(os.path.dirname(file), '..', 'frontend', 'dist')app = Flask(name, static_folder=static_dir, static_url_path='/')
If both are correct and you still get 404, let me know the exact contents of frontend/dist (list the files).
Once you provide this info, I can give you the next step or fix.
I simply in text no screenshot pasted what was in my frontend folder showing that even after performiong the steps there is not dist in my frontend folder frontend/build frontend/const { app, BrowserWindow } = require('.js frontend/electron.cjs frontend/node_modules frontend/package-lock.json frontend/package.json frontend/src frontend/test-api.html frontend/index.css frontend/index.html frontend/public frontend/tailwind.config.js frontend/vercel.json frontend/logobro.png frontend/postcss.config.cjs frontend/start_backend.sh frontend/start_frontend.sh frontend/vite.config.js
How is this fliagged I could understand if there was maybe sensitive info but theres not. Even worse if there were I would have to post here....
Extension version: 0.29.1
VS Code version: Code 1.102.1 (Universal) (7adae6a, 2025-07-15T16:41:17.147Z)
OS version: Darwin arm64 24.5.0
Modes:
System Info
Item | Value |
---|---|
CPUs | Apple M3 (8 x 2400) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: enabled_on video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
Load (avg) | 19, 14, 12 |
Memory (System) | 8.00GB (0.07GB free) |
Process Argv | --crash-reporter-id f817a491-d488-423a-98bd-bd1cd0416c07 |
Screen Reader | yes |
VM | 0% |
A/B Experiments
vsliv368:30146709
binariesv615:30325510
962ge761:31350689
h48ei257:31000450
nativeloc1:31344060
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
9064b325:31222308
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
c7cif404:31314491
pythonpulldiag:31343502
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
9d2cg352:31346308
convertlamdaf:31350062
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31350858
b6b4d950:31327385
nes-diff-11:31337487
replacestringexc:31350595
nes-set-on:31350020
testaa123:31335226
6abeh943:31336334
yijiwantestdri0626-t:31336930
0927b901:31350571
f76d9909:31348711
nes-deb-00:31346719
0cj2b977:31350606
a02b4192-color:31350622