Potentially an error with converting to legacy code which can also mean a babel issue. One way of solving these issues is to debug through the errors that you are getting to have an idea which specific code (or converted code) is causing the error.
I haven’t been coding with cordova since we moved to pwa so I don’t have an idea now where to start debugging