Uncaught TypeError: Reflect.getMetadata is not a function

Hello there,

I am trying to deploy my app in the store but i am facing an error with this command:

ionic cordova run android --prod

Saying that:

Uncaught TypeError: Reflect.getMetadata is not a function
    at Function.e.add (main.0e8f6659040a9b137076.js:1)
    at main.0e8f6659040a9b137076.js:1
    at Object.s (main.0e8f6659040a9b137076.js:1)
    at Object.lGQG (main.0e8f6659040a9b137076.js:1)
    at r (runtime.631d757b4d4f5722817f.js:1)
    at Object.o0su (main.0e8f6659040a9b137076.js:1)
    at r (runtime.631d757b4d4f5722817f.js:1)
    at Module.zUnb (main.0e8f6659040a9b137076.js:1)
    at r (runtime.631d757b4d4f5722817f.js:1)
    at Object.0 (main.0e8f6659040a9b137076.js:1)

Here is my project info:

Ionic:

   ionic (Ionic CLI)             : 4.12.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.7.1
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.3.9
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.5.1

Cordova:

   cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms     : android 8.0.0, browser 5.0.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 14 other plugins)

System:

   Android SDK Tools : 26.1.1 (/home/ali_frad/Android/Sdk)
   NodeJS            : v10.15.3 (/usr/local/bin/node)
   npm               : 6.4.1
   OS                : Linux 4.4

I really can’t figure out what is the reason the app works fine in debug version
Please can anyone help me i uergently need to put the app in the store
Thanks in advance :slight_smile:

I think that the error is caused by angular. Try this.