Cannot ionic cordova build --prod or ionic monitoring syncmaps, lots of errors on build

I tried the following command to try add the monitoring feature of ionic to diagnose a problem in my app using ionic view.

$ ionic monitoring syncmaps
git rev-parse HEAD √ Running command - done! [INFO] No sourcemaps found, doing build...
? Do full prod build? (Y/n) y ?
Do full prod build? Yes [INFO] Running app-scripts build: --prod

[22:16:31] build prod started … [22:16:31] clean started … [22:16:31] clean finished in 1 ms [22:16:31] copy started … [22:16:31] ngc started … [22:16:37] ngc finished in 6.08 s [22:16:37] preprocess started … [22:16:37] deeplinks started … [22:16:38] deeplinks finished in 441 ms [22:16:38] optimization started … [22:16:38] copy finished in 6.63 s Error: ./src/pages/admin/admin.ngfactory.js Module not found: Error: Can’t resolve ‘…/…/…/angularfire2/auth’ in >‘C:\Users\Gavin\Desktop\Web Development\app\src\pages\admin’ resolve ‘…/…/…/angularfire2/auth’ in ‘C:\Users\Gavin\Desktop\Web Development\app\src\pages\admin’ using description file: C:\Users\Gavin\Desktop\Web Development\app\package.json (relative path: ./src/pages/admin) Field ‘browser’ doesn’t contain a valid alias configuration

This error keeps going down the page for a long time, I get the same error if I type ionic cordova build --prod
My Package JSON is

{
“name”: “myFeed”,
“version”: “0.0.1”,
“author”: “Ionic Framework”,
“homepage”: “http://ionicframework.com/”,
“private”: true,
“scripts”: {
“clean”: “ionic-app-scripts clean”,
“build”: “ionic-app-scripts build”,
“lint”: “ionic-app-scripts lint”,
“ionic:build”: “ionic-app-scripts build”,
“ionic:serve”: “ionic-app-scripts serve”
},
“dependencies”: {
"@angular/common": “4.1.3”,
"@angular/compiler": “4.1.3”,
"@angular/compiler-cli": “4.1.3”,
"@angular/core": “4.1.3”,
"@angular/forms": “4.1.3”,
"@angular/http": “4.1.3”,
"@angular/platform-browser": “4.1.3”,
"@angular/platform-browser-dynamic": “4.1.3”,
"@angular/tsc-wrapped": “^4.3.6”,
"@ionic-native/core": “3.12.1”,
"@ionic-native/file": “^4.1.0”,
"@ionic-native/firebase": “^4.0.0”,
"@ionic-native/native-storage": “^4.0.0”,
"@ionic-native/splash-screen": “3.12.1”,
"@ionic-native/status-bar": “3.12.1”,
"@ionic-native/text-to-speech": “^4.2.1”,
"@ionic/storage": “^2.0.1”,
“angularfire2”: “^4.0.0-rc.2”,
“angularfire2-offline”: “^4.3.1”,
“autoprefixer”: “^7.1.4”,
“cordova-android”: “^6.2.3”,
“cordova-plugin-compat”: “^1.0.0”,
“cordova-plugin-console”: “^1.0.5”,
“cordova-plugin-device”: “^1.1.4”,
“cordova-plugin-file”: “^4.3.3”,
“cordova-plugin-firebase”: “^0.1.22”,
“cordova-plugin-nativestorage”: “^2.2.2”,
“cordova-plugin-splashscreen”: “^4.0.3”,
“cordova-plugin-statusbar”: “^2.2.2”,
“cordova-plugin-tts”: “^0.2.3”,
“cordova-plugin-whitelist”: “^1.3.1”,
“cordova-sqlite-storage”: “^2.0.4”,
“firebase”: “^4.3.1”,
“ionic-angular”: “3.5.0”,
“ionic-plugin-keyboard”: “^2.2.1”,
“ionicons”: “3.0.0”,
“localforage”: “^1.5.0”,
“localforage-cordovasqlitedriver”: “^1.6.0”,
“promise-polyfill”: “6.0.2”,
“rxjs”: “5.4.0”,
“sw-toolbox”: “3.6.0”,
“zone.js”: “0.8.12”
},
“devDependencies”: {
"@ionic/app-scripts": “^2.1.4”,
“ionic”: “3.10.3”,
“typescript”: “2.3.4”
},
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“cordova-plugin-firebase”: {},
“cordova-plugin-nativestorage”: {},
“cordova-plugin-console”: {},
“cordova-plugin-device”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-statusbar”: {},
“cordova-plugin-whitelist”: {},
“ionic-plugin-keyboard”: {},
“cordova-sqlite-storage”: {},
“cordova-plugin-file”: {},
“cordova-plugin-tts”: {}
},
“platforms”: [
“android”
]
}
}