A chat application has been developed using Ionic2. Upon attempting to generate a production build with
ionic cordova build android --prod --release
, the following error is encountered.
Error: ./node_modules/rxjs/observable/BoundCallbackObservable.js
Module build failed: TypeError: Cannot read property 'type' of undefined
at Object.getEffectiveTypeAnnotationNode (C:\Users\cool\Desktop\Chat\SideMenu\node_modules\typescript\lib\typescript.js:9341:17)
...
Ionic Info
cli packages: (C:\Users\cool\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.0
Cordova Platforms : android 6.3.0
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
Node : v6.10.3
npm : 3.10.10
OS : Windows 8.1
Assistance is needed in resolving this error despite having reviewed similar questions without finding a solution.