commit 643457901556f4094dd246c979e9429e30ce5215 truex <truex@equwal.com> 2026-09-26 13:42:00 -0700 Do not watch android/ in the dev server The dev server watched android/. "cap sync" writes the web build into android/app/src/main/assets/public, so the dev server reloaded the open app. Then it stopped with "Error: UNKNOWN: unknown error, lstat '...\android\app\src\main\assets\public\assets'". The watch now ignores android/.
vite.config.ts | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/vite.config.ts b/vite.config.ts index 26f2679..11195f5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,4 +4,9 @@ export default defineConfig({ build: { target: 'es2022', }, + server: { + // `cap sync` writes into android/. A watch there reloads the open app, + // and a folder that `cap sync` deletes can stop the dev server. + watch: { ignored: ['**/android/**'] }, + }, });