Hi,
i tried to build older ionic-cordova app but failed, it was created with node v12.20.0
Error:
cordova.cmd build android
C:\Users\User\AppData\Roaming\npm\node_modules\cordova\node_modules\nopt\lib\nopt-lib.js:64
const StringType = typeDefs.String?.type
^
SyntaxError: Unexpected token ‘.’
That is error with node v12.20.0, when i upgrade node to latest or any different version there is problem with sass enviroment - what ever i used to update, uninstall, reinstall ( different versions ) of sass it doesent work. Is there any workourund to skip that error? Delete node modules and npm install gives me bunch of errors, so that is not an option.
“dependencies”: {
“@angular/animations”: “5.2.11”,
“@angular/common”: “5.2.11”,
“@angular/compiler”: “5.2.11”,
“@angular/compiler-cli”: “5.2.11”,
“@angular/core”: “5.2.11”,
“@angular/forms”: “5.2.11”,
“@angular/http”: “5.2.11”,
“@angular/platform-browser”: “5.2.11”,
“@angular/platform-browser-dynamic”: “5.2.11”,
“@ionic-native/android-permissions”: “^4.20.0”,
“@ionic-native/app-version”: “^4.20.0”,
“@ionic-native/barcode-scanner”: “^4.20.0”,
“@ionic-native/base64”: “^4.20.0”,
“@ionic-native/base64-to-gallery”: “^4.20.0”,
“@ionic-native/call-number”: “^4.20.0”,
“@ionic-native/camera”: “^3.14.0”,
“@ionic-native/core”: “~4.18.0”,
“@ionic-native/device”: “^4.20.0”,
“@ionic-native/file”: “^4.20.0”,
“@ionic-native/file-opener”: “^4.20.0”,
“@ionic-native/file-path”: “^4.20.0”,
“@ionic-native/file-transfer”: “^4.20.0”,
“@ionic-native/image-picker”: “^4.20.0”,
“@ionic-native/insomnia”: “^4.20.0”,
“@ionic-native/ionic-webview”: “^5.0.0”,
“@ionic-native/keyboard”: “^4.20.0”,
“@ionic-native/launch-navigator”: “^4.20.0”,
“@ionic-native/network”: “^4.20.0”,
“@ionic-native/photo-library”: “^4.20.0”,
“@ionic-native/photo-viewer”: “^4.20.0”,
“@ionic-native/push”: “^4.20.0”,
“@ionic-native/screen-orientation”: “^4.20.0”,
“@ionic-native/screenshot”: “^4.20.0”,
“@ionic-native/splash-screen”: “~4.18.0”,
“@ionic-native/sqlite”: “^4.20.0”,
“@ionic-native/status-bar”: “~4.18.0”,
“@ionic/storage”: “2.2.0”,
“angular2-signaturepad”: “^2.8.0”,
“call-number”: “1.0.1”,
“com-sarriaroman-photoviewer”: “1.1.18”,
“cordova-android”: “7.1.0”,
“cordova-base64-to-gallery”: “4.1.1”,
“cordova-plugin-actionsheet”: “2.3.3”,
“cordova-plugin-android-permissions”: “1.0.0”,
“cordova-plugin-app-version”: “0.1.9”,
“cordova-plugin-camera”: “2.4.1”,
“cordova-plugin-compat”: “1.2.0”,
“cordova-plugin-device”: “^2.0.2”,
“cordova-plugin-dialogs”: “2.0.1”,
“cordova-plugin-file”: “6.0.1”,
“cordova-plugin-file-opener2”: “2.1.4”,
“cordova-plugin-file-transfer”: “1.7.1”,
“cordova-plugin-insomnia”: “4.3.0”,
“cordova-plugin-ionic-keyboard”: “^2.1.3”,
“cordova-plugin-ionic-webview”: “^3.1.2”,
“cordova-plugin-mediascanner”: “git+https://github.com/begrossi/MediaScannerPlugin.git”,
“cordova-plugin-network-information”: “2.0.1”,
“cordova-plugin-screen-orientation”: “3.0.1”,
“cordova-plugin-splashscreen”: “^5.0.2”,
“cordova-plugin-statusbar”: “^2.4.2”,
“cordova-plugin-whitelist”: “^1.3.3”,
“cordova-sqlite-storage”: “3.0.0”,
“cordova-support-google-services”: “1.1.0”,
“es6-promise-plugin”: “4.2.2”,
“exif-js”: “^2.3.0”,
“hosted-git-info”: “^7.0.2”,
“ionic-angular”: “3.9.3”,
“ionic-long-press”: “^1.5.0”,
“ionicons”: “3.0.0”,
“moment”: “^2.24.0”,
“ng2-completer”: “^2.0.8”,
“or”: “^0.2.0”,
“phonegap-plugin-barcodescanner”: “8.0.1”,
“phonegap-plugin-multidex”: “1.0.0”,
“phonegap-plugin-push”: “2.2.3”,
“remove”: “^0.1.5”,
“rxjs”: “5.5.11”,
“sw-toolbox”: “3.6.0”,
“uk.co.workingedge.phonegap.plugin.launchnavigator”: “5.0.2”,
“zone.js”: “0.8.29”
},
“devDependencies”: {
“@ionic/app-scripts”: “^3.2.4”,
“com.darktalker.cordova.screenshot”: “^0.1.6”,
“cordova-android-support-gradle-release”: “^3.0.1”,
“cordova-plugin-filepath”: “^1.6.0”,
“cordova-plugin-photo-library”: “^2.3.1”,
“cordova-plugin-telerik-imagepicker”: “^2.3.3”,
“typescript”: “~2.6.2”
},
“description”: "An Ionic projec