early-butcher-66889
12/20/2025, 7:15 AMlk app create --template agent-starter-react-native but it keeps failing with /Repositories/scratch/my-app/hooks/useConnection.ts: No such file or directory - is there something wrong with the CLI?tall-airline-16756
12/20/2025, 7:15 AMtall-airline-16756
12/20/2025, 7:16 AMlk app create --template agent-starter-react-native command fails with a missing file error for /Repositories/scratch/my-app/hooks/useConnection.ts. That typically indicates the template wasn't fully written to disk during project creation, not a CLI bug most of the time.
Quick troubleshooting steps — please run and share the results of these:
1. lk --version
2. OS and shell (e.g., macOS 13.4 + zsh, Windows 11 + PowerShell, Linux + bash)
3. Re-run the create command in an empty, writable folder and capture output:
◦ mkdir tmp-lk && cd tmp-lk && lk app create --template agent-starter-react-native
1. Check whether the file exists or partial files were written: list the hooks folder after the command:
◦ ls -la my-app/hooks (or dir my-app\hooks on Windows)
1. Any errors or warnings shown during creation (copy/paste them).
2. Confirm network access and that lk cloud auth is completed (if required).
If you prefer a quick workaround while we diagnose: try cloning the template repo manually (or download the template zip), then copy its files into your project folder. I can give exact repo/paths once you share your lk version and OS.
Sources: App templates | LiveKit docs | OpenAI and LiveKit partner to turn Advanced Voice into an API | LiveKit CLI Setup | LiveKit Docs