Runtime Error, Could not find cordova.js script tag. Plugin loading may fail

Hi all,
I added some plugin to my ionic5 app and after this my app not works.
I built for browser platform (test purpose) and for android.

It works successfully with “ionic serve” and if I test on my real device in debug mode.

If I built for browser latform or android for the store, it not works.

In browser platform I receive this errors and white page:

Could not find cordova.js script tag. Plugin loading may fail.
main.02ac0bedeb916c3af2ff.js:1 Error: JIT compiler unavailable
    at gn (main.02ac0bedeb916c3af2ff.js:1)
    at Function.get (main.02ac0bedeb916c3af2ff.js:1)
    at wt (main.02ac0bedeb916c3af2ff.js:1)
    at ji (main.02ac0bedeb916c3af2ff.js:1)
    at main.02ac0bedeb916c3af2ff.js:1
    at Di.processProvider (main.02ac0bedeb916c3af2ff.js:1)
    at main.02ac0bedeb916c3af2ff.js:1
    at main.02ac0bedeb916c3af2ff.js:1
    at Array.forEach (<anonymous>)
    at bn (main.02ac0bedeb916c3af2ff.js:1)
cordova.63b449c962532a113eb6.js:1 adding proxy for Device
cordova.63b449c962532a113eb6.js:1 adding proxy for AppVersion
cordova.63b449c962532a113eb6.js:1 Error: exec proxy not found for :: FCMPlugin :: ready
FCMPlugin.js:45 FCM: has been created
cordova.63b449c962532a113eb6.js:1 adding proxy for Globalization
cordova.63b449c962532a113eb6.js:1 adding proxy for GooglePlus
cordova.63b449c962532a113eb6.js:1 adding proxy for SplashScreen
cordova.63b449c962532a113eb6.js:1 adding proxy for StatusBar
FCMPlugin.js:40 FCM: Ready error:  Missing Command Error
FCMPlugin.js:42 FCM: Ready!
cordova.63b449c962532a113eb6.js:1 Error: exec proxy not found for :: FCMPlugin :: startJsEventBridge
FCMPlugin.js:22 FCM: Error listening to native events Missing Command Error
StatusBarProxy.js:23 StatusBar is not supported
main.02ac0bedeb916c3af2ff.js:1 Ionic Native: deviceready event fired after 22 ms
main.02ac0bedeb916c3af2ff.js:1 Ionic Native: deviceready event fired after 21 ms
screen:1 Failed to load resource: the server responded with a status of 404 (Not Found)
GooglePlusProxy.js:121 Cookies are not enabled in current environment.
(anonymous) @ GooglePlusProxy.js:121

This is my configuration

ionic info

Ionic:

   Ionic CLI                     : 6.13.1 (C:\Users\xxx\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 5.9.2
   @angular-devkit/build-angular : 12.1.4
   @angular-devkit/schematics    : 12.1.4
   @angular/cli                  : 12.1.4
   @ionic/angular-toolkit        : 4.0.0

Cordova:

   Cordova CLI       : 10.0.0
   Cordova Platforms : 6.0.0, android 9.1.0, browser
   Cordova Plugins   : not available

Utility:

   cordova-res (update available: 0.15.4) : 0.15.3
   native-run (update available: 1.5.0)   : 1.4.0

System:

   Android SDK Tools : 26.1.1 (C:\Users\xxx\AppData\Local\Android\Sdk)
   NodeJS            : v14.16.1 (C:\Program Files\nodejs\node.exe)
   npm               : 6.14.12
   OS                : Windows 10

Help me please
L

If I edit angular.json and set aot and buildOptimezer to false it works but for me it is not a good solution.

"configurations": {
            "production": {
              ...
              "aot": false,
              ...
              "buildOptimizer": false,
              ...
            }
          }