angular-toolkit icon indicating copy to clipboard operation
angular-toolkit copied to clipboard

Error: Unknown argument: platform

Open shfique opened this issue 3 years ago • 4 comments

Hi, I'm facing issue for release

image

shfique avatar Nov 17 '22 11:11 shfique

image pachnage.json given below

{ "name": "Masarah_Clinic_Patient", "version": "0.0.1", "author": "Ionic Framework", "homepage": "https://ionicframework.com/", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/common": "^14.0.0", "@angular/core": "^14.0.0", "@angular/forms": "^14.0.0", "@angular/platform-browser": "^14.0.0", "@angular/platform-browser-dynamic": "^14.0.0", "@angular/router": "^14.0.0", "@apirtc/apirtc": "^4.7.8", "@ionic-native/android-permissions": "^5.36.0", "@ionic-native/background-geolocation": "^5.36.0", "@ionic-native/badge": "^5.36.0", "@ionic-native/camera": "^5.36.0", "@ionic-native/core": "^5.36.0", "@ionic-native/file": "^5.36.0", "@ionic-native/file-path": "^5.36.0", "@ionic-native/file-transfer": "^5.36.0", "@ionic-native/fingerprint-aio": "^5.36.0", "@ionic-native/geolocation": "^5.36.0", "@ionic-native/in-app-browser": "^5.36.0", "@ionic-native/ionic-webview": "^5.36.0", "@ionic-native/push": "^5.36.0", "@ionic-native/speech-recognition": "^5.36.0", "@ionic-native/splash-screen": "^5.36.0", "@ionic-native/status-bar": "^5.36.0", "@ionic/angular": "^6.1.9", "@ionic/cordova-builders": "^7.0.0", "@ionic/storage-angular": "^3.0.6", "@ngx-translate/core": "^14.0.0", "@ngx-translate/http-loader": "^7.0.0", "cordova-android": "^11.0.0", "cordova-plugin-android-permissions": "^1.1.4", "cordova-plugin-badge": "^0.8.8", "cordova-plugin-camera": "^4.1.0", "cordova-plugin-file": "^6.0.2", "cordova-plugin-file-transfer": "^1.7.1", "cordova-plugin-filepath": "^1.6.0", "cordova-plugin-fingerprint-aio": "^5.0.1", "cordova-plugin-geolocation": "^4.1.0", "cordova-plugin-inappbrowser": "^4.1.0", "cordova-plugin-mauron85-background-geolocation": "^3.0.0-alpha.50", "cordova-plugin-speechrecognition": "^1.2.0", "cordova-sqlite-storage": "github:litehelpers/Cordova-sqlite-storage", "date-fns": "^2.29.3", "ionic-selectable": "^4.9.0", "ionic2-calendar": "^0.6.9", "ionicons": "^6.0.3", "rxjs": "~7.5.0", "tslib": "^2.3.0", "zone.js": "~0.11.4" }, "devDependencies": { "@angular-devkit/build-angular": "^14.0.0", "@angular-eslint/builder": "^14.0.0", "@angular-eslint/eslint-plugin": "^14.0.0", "@angular-eslint/eslint-plugin-template": "^14.0.0", "@angular-eslint/template-parser": "^14.0.0", "@angular/cli": "^14.0.0", "@angular/compiler": "^14.0.0", "@angular/compiler-cli": "^14.0.0", "@angular/language-service": "^14.0.0", "@ionic/angular-toolkit": "^6.0.0", "@types/jasmine": "~4.0.0", "@types/node": "^12.11.1", "@typescript-eslint/eslint-plugin": "5.3.0", "@typescript-eslint/parser": "5.3.0", "cordova-plugin-device": "2.0.2", "cordova-plugin-ionic-keyboard": "^2.0.5", "cordova-plugin-ionic-webview": "^5.0.0", "cordova-plugin-splashscreen": "5.0.2", "cordova-plugin-statusbar": "^2.4.3", "eslint": "^7.6.0", "eslint-plugin-import": "2.22.1", "eslint-plugin-jsdoc": "30.7.6", "eslint-plugin-prefer-arrow": "1.2.2", "jasmine-core": "~4.3.0", "jasmine-spec-reporter": "~5.0.0", "karma": "~6.4.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.2.0", "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.0.0", "ts-node": "~8.3.0", "typescript": "~4.7.2" }, "description": "An Ionic project", "cordova": { "plugins": { "cordova-plugin-statusbar": {}, "cordova-plugin-device": {}, "cordova-plugin-splashscreen": {}, "cordova-plugin-ionic-webview": {}, "cordova-plugin-ionic-keyboard": {}, "cordova-plugin-android-permissions": {} }, "platforms": [ "android" ] } }

shfique avatar Nov 17 '22 11:11 shfique

Masarah Patient App Masarah App for Patient Ionic Framework Team

shfique avatar Nov 17 '22 11:11 shfique

Can you share what you have for your ionic-cordova-build entry in your angular.json? It should be

        "ionic-cordova-build": {
          "builder": "@ionic/cordova-builders:cordova-build",
          "options": {
            "browserTarget": "app:build"
          },
          "configurations": {
            "production": {
              "browserTarget": "app:build:production"
            }
          }
        }

mhartington avatar Dec 06 '22 12:12 mhartington

Any solutions for this. Facing the same issue on Angular 15

Akash-Tapadia-DFT avatar Jan 31 '24 09:01 Akash-Tapadia-DFT