vercel-labs / vercel-labs/native

window11 build faild!

Open
#53 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Zig
Stars
7.7k
Forks
314
Avg merge
5h
Merged PRs (30d)
13

Description

vite8
zig0.16

zero-native init my_app --frontend vite
cd my_app
zig build run

error: failed to check cache: 'E:\self\src\root.zig' file_hash FileNotFound
error: 1 compilation errors
failed command: "D:\Protable\zig-0.16\zig.exe" build-exe -cflags -std=c++17 -- "..\src\platform\windows\webview2_host.cpp" -luser32 -lole32 -lshell32 -ODebug --dep zero-native --dep runner "-Mroot=E:\self\my_app\src\main.zig" -ODebug --dep geometry --dep assets --dep app_dirs --dep trace --dep app_manifest --dep diagnostics --dep platform_info --dep json "-Mzero-native=..\src\root.zig" -ODebug --dep zero-native --dep build_options "-Mrunner=E:\self\my_app\src\runner.zig" -ODebug "-Mgeometry=..\src\primitives\geometry\root.zig" -ODebug "-Massets=..\src\primitives\assets\root.zig" -ODebug "-Mapp_dirs=..\src\primitives\app_dirs\root.zig" -ODebug "-Mtrace=..\src\primitives\trace\root.zig" -ODebug "-Mapp_manifest=..\src\primitives\app_manifest\root.zig" -ODebug "-Mdiagnostics=..\src\primitives\diagnostics\root.zig" -ODebug "-Mplatform_info=..\src\primitives\platform_info\root.zig" -ODebug "-Mjson=..\src\primitives\json\root.zig" "-Mbuild_options=.zig-cache\c\8dfde8dadb29772a39ca241889d2fdb8\options.zig" -lc++ -lc --cache-dir .zig-cache --global-cache-dir "C:\Users\cl\AppData\Local\zig" --name my-app --zig-lib-dir "D:\Protable\zig-0.16\lib\" --listen=-

my-app@0.1.0 build
vite build

vite v8.0.13 building client environment for production...
✓ 5 modules transformed.
computing gzip size...
dist/index.html 0.91 kB │ gzip: 0.50 kB
dist/assets/index-C0YeqBRq.css 0.70 kB │ gzip: 0.43 kB
dist/assets/index-C10X4WWf.js 0.83 kB │ gzip: 0.46 kB

✓ built in 165ms
Build Summary: 3/6 steps succeeded (1 failed)
run transitive failure
└─ run exe my-app transitive failure
└─ compile exe my-app Debug native 1 errors

error: the following build command failed with exit code 1:
.zig-cache\o\3432da47ce156d3dfec55ec75f0c29d0\build.exe D:\Protable\zig-0.16\zig.exe D:\Protable\zig-0.16\lib E:\self\my_app .zig-cache C:\Users\cl\AppData\Local\zig --seed 0xf5b2b9de -Za77e6206bc5f38e0 run

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Windows 11 setup with Vite 8 and Zig 0.16 using the commands in the issue. Inspect the referenced src/root.zig path and the Zig module arguments in the failed command, including the .zig-cache paths. Done means zig build run completes and the generated my-app executable runs without the missing root.zig or cache error.

Written by the indexing model from the issue text.

Assessment

Tech stack
vite, zig
Domain
build-system, desktop-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.