IBM / Ionic-MFP-App

This repository contains instructions to develop a secure, enterprise-grade Ionic/Cordova based hybrid mobile app that connects to CouchDB/Cloudant and ObjectStorage via IBM Mobile Foundation service.
https://developer.ibm.com/patterns/develop-hybrid-mobile-app-with-cloud-native-back-end/
Apache License 2.0
15 stars 25 forks source link

Bug Fix - Ionic Build Failure #32

Closed vittalpai closed 5 years ago

vittalpai commented 5 years ago

Ionic Build fails with following error :

Running app-scripts build: 
[15:27:48]  build dev started ... 
[15:27:48]  clean started ... 
[15:27:48]  clean finished in 3 ms 
[15:27:48]  copy started ... 
[15:27:48]  deeplinks started ... 
[15:27:48]  deeplinks finished in 126 ms 
[15:27:48]  transpile started ... 
[15:27:56]  typescript: src/pages/report-new/report-new.ts, line: 139 
            Argument of type '(result: NativeGeocoderReverseResult) => void' is not assignable to parameter of type 
            '(value: NativeGeocoderReverseResult[]) => void | PromiseLike<void>'. Types of parameters 'result' and 
            'value' are incompatible. Type 'NativeGeocoderReverseResult[]' is not assignable to type 
            'NativeGeocoderReverseResult'. Property 'countryCode' is missing in type 'NativeGeocoderReverseResult[]'. 

     L138:    str += address.administrativeArea + ", ";
     L140:  if (address.countryName) {

Error: Failed to transpile program
    at new BuildError (/Users/vittal/Downloads/Ionic-MFP-App-master/IonicMobileApp/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
    at /Users/vittal/Downloads/Ionic-MFP-App-master/IonicMobileApp/node_modules/@ionic/app-scripts/dist/transpile.js:159:20
    at Promise (<anonymous>)
    at transpileWorker (/Users/vittal/Downloads/Ionic-MFP-App-master/IonicMobileApp/node_modules/@ionic/app-scripts/dist/transpile.js:107:12)
    at Object.transpile (/Users/vittal/Downloads/Ionic-MFP-App-master/IonicMobileApp/node_modules/@ionic/app-scripts/dist/transpile.js:64:12)
    at /Users/vittal/Downloads/Ionic-MFP-App-master/IonicMobileApp/node_modules/@ionic/app-scripts/dist/build.js:109:82
    at <anonymous>
stevemar commented 5 years ago

@shivahr can you or someone from your team take a look at this PR and the other open issues in this repo?