This problem cost me some time to fix. Maybe it is simple, but I think it would be better to add this as a hint to someone new to setting up a desktop app development environment.
@@ -44,6 +44,7 @@ yarn install && cd static && yarn install && cd ..
```bash
yarn watch
# Wait until watch is finished building and then in a different shell
+# If you have opened desktop logseq, you should close it. Otherwise, the following command will fail.
yarn dev-electron-app
```