capacitor-docs icon indicating copy to clipboard operation
capacitor-docs copied to clipboard

Must build web code before syncing

Open hborders opened this issue 1 year ago • 1 comments

I tried following the instructions, and I got the following error:

[error] Could not find the web assets directory: ./dist.
        Please create it and make sure it has an index.html file. You can change the path of this directory in
        capacitor.config.json (webDir option). You may need to compile the web assets for your app (typically npm run
        build). More info: https://capacitorjs.com/docs/basics/workflow#sync-your-project

The error message says to use npm run build, so the instructions should suggest that.

hborders avatar Jan 26 '24 22:01 hborders

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
capacitor-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 26, 2024 10:42pm

vercel[bot] avatar Jan 26 '24 22:01 vercel[bot]