We got exactly the same issue after upgrading to Capacitor 6. In my case, I was able to solve it by running "cap sync".