[ng] ERROR in Cannot read property 'map' of undefined

I am a university student writing a dissertation about Ionic framework. I currently in the process of producing my final application but while generating the production release I encountered this error:
[ng] ERROR in Cannot read property ‘map’ of undefined

This error is preventing me from moving forward with my application and I would appreciate any help or suggestions.

Thanks in advance.

Full code can be seen here:

The error has been sorted, thanks anyway.

Where this error is fired? Which file and which line? If you could paste the code here would be better.

Would it be possible to use something like github or gitlab instead, that is designed for this sort of activity?

I’ve just updated the ionic cli and got this very same error.

I’ve added the --verbose flag and got this:

ERROR in Cannot read property ‘map’ of undefined
[ERROR] An error occurred while running subprocess ng.
ng run app:ionic-cordova-build --platform=ios exited with exit code 1.

I also think this messed up my cordova plugins. But I’m not sure. Here is my info:


   Ionic CLI                     : 6.5.0 (/Users/wd/.nvm/versions/node/v12.11.1/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.0.7
   @angular-devkit/build-angular : 0.803.26
   @angular-devkit/schematics    : 8.3.26
   @angular/cli                  : 8.3.26
   @ionic/angular-toolkit        : 2.2.0


   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : not available
   Cordova Plugins   : not available


   cordova-res : 0.11.0
   native-run  : 1.0.0


   ios-deploy : 1.10.0
   ios-sim    : 8.0.2
   NodeJS     : v12.11.1 (/Users/wd/.nvm/versions/node/v12.11.1/bin/node)
   npm        : 6.14.4
   OS         : macOS Catalina
   Xcode      : Xcode 11.4 Build version 11E146

Hi, do you manage to resolve it?


can u share ur code snippet ?