Error while building ionic 2 app

Help! I’m desperate…can’t get this fixed. Error while building, see below.

ionic cordova:build platform android --debug
TypeError: Cannot read property ‘private’ of undefined
at inputs.filter (\node_modules@ionic\cli-utils\dist\index.js:20826:31)
at Array.filter (native)
at BuildCommand.getCleanInputsForTelemetry (\node_modules@ionic\cli-utils\dist\index.js:20825:18)
at BuildCommand. (\node_modules@ionic\cli-utils\dist\index.js:20788:48)
at Generator.next ()
at fulfilled (\node_modules@ionic\cli-utils\dist\index.js:20731:58)

I tried updating different items already:
npm install -g cordova@latest
ionic platform update android@6.1.2
npm install @ionic/app-scripts@latest --save-dev

please help! Can’t get my app to production!

What does ionic --version print out for the CLI version?
This looks like a v3-beta issue?

yes it is the v3 beta, sorry forget to mention that

Yeah that might be end cause of the issue. Can you post your package.json version for dev deps?

{
  "devDependencies": {
    "@ionic/app-scripts": "1.1.4",
    "typescript": "2.0.9",
    "@ionic/cli-plugin-cordova": "0.0.9",
    "@ionic/cli-build-ionic-angular": "0.0.3"
  }
}

Something might be out of date there causing issues.

Ok I solved that issue, but now I get Typescript errors for every item from the native imports, when running ionic serve. For example:

property hide does not exist on type typeof SplashScreen

I changed my imports to

import { LocalNotifications } from '@ionic-native/local-notifications';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';

My ionic info:

 ordova CLI: 6.5.0
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.0.0
Xcode version: Not installed

My ionic plugin ls

cordova-plugin-app-event 1.2.0 "Application Events"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-camera 2.4.0 "Camera"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.6 "Console"
cordova-plugin-device 1.1.5 "Device"
cordova-plugin-fcm 2.1.1 "FCMPlugin"
cordova-plugin-nativestorage 2.2.1 "NativeStorage"
cordova-plugin-splashscreen 4.0.2 "Splashscreen"
cordova-plugin-statusbar 2.2.2 "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-plugin-x-socialsharing 5.1.6 "SocialSharing"
de.appplant.cordova.plugin.local-notification 0.8.4 "LocalNotification"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-barcodescanner 6.0.5 "BarcodeScanner"

My package.json

"dependencies": {
    "@angular/common": "2.4.8",
    "@angular/compiler": "2.4.8",
    "@angular/compiler-cli": "2.4.8",
    "@angular/core": "2.4.8",
    "@angular/forms": "2.4.8",
    "@angular/http": "2.4.8",
    "@angular/platform-browser": "2.4.8",
    "@angular/platform-browser-dynamic": "2.4.8",
    "@angular/platform-server": "2.4.8",
    "@ionic/storage": "2.0.0",
    "@ionic-native/core": "^3.1.0",
    "ionicons": "3.0.0",
    "ionic-angular": "2.2.0",
    "rxjs": "5.0.1",
    "zone.js": "0.7.2",
    "sw-toolbox": "3.5.1",
    "babel-core": "^6.24.0",
    "d": "^1.0.0",
    "ng2-translate": "^4.0.0",
    "@ionic-native/barcode-scanner": "^3.1.0",
    "@ionic-native/local-notifications": "^3.1.0",
    "@ionic-native/native-storage": "^3.1.0",
    "@ionic-native/social-sharing": "^3.1.0",
    "@ionic-native/splash-screen": "^3.1.0",
    "@ionic-native/status-bar": "^3.1.0"
    
  },
  "devDependencies": {
    "@ionic/app-scripts": "^1.1.4",
    "@ionic/cli-build-ionic-angular": "0.0.3",
    "@ionic/cli-plugin-cordova": "0.0.9",
    "typescript": "2.0.9"
  }

tsc -v

Version 2.2.1