I'm trying to use the create-react-app command `lk...
# ask-ai
e
I'm trying to use the create-react-app command
lk 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?
t
Thanks for reaching out, Arthur. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Sorry you're blocked—let's get this sorted. You mentioned the
lk 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