One signal plugin gives error @ionic-native/onesignal/index.d.ts, found version 4, expected 3

hi when i create production release build of ios (ionic cordova build ios --prod --release)its give me error of

@ionic-native/onesignal/index.d.ts, found version 4, expected 3

in production release its give error so i want to know how i solve this issue. its urgent for me

Hello,

what does your package.json looks? Maybe there is a mismatch of the necessary versions.

Best regards, anna-liebt

{
“name”: “tester”,
“version”: “1.0.1”,
“author”: “akhilesh”,
“homepage”: “testing/”,
“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/animations”: “^4.4.7”,
@angular/common”: “4.4.4”,
@angular/compiler”: “4.4.4”,
@angular/compiler-cli”: “4.4.4”,
@angular/core”: “4.4.4”,
@angular/forms”: “4.4.4”,
@angular/http”: “4.4.4”,
@angular/platform-browser”: “4.4.4”,
@angular/platform-browser-dynamic”: “4.4.4”,
@ionic-native/background-mode”: “^4.9.2”,
@ionic-native/base64”: “^4.10.0”,
@ionic-native/camera”: “^4.9.2”,
@ionic-native/core”: “4.3.2”,
@ionic-native/crop”: “^4.10.0”,
@ionic-native/device”: “^4.9.2”,
@ionic-native/diagnostic”: “^4.10.0”,
@ionic-native/file”: “^4.17.0”,
@ionic-native/file-opener”: “^4.10.0”,
@ionic-native/file-transfer”: “^4.17.0”,
@ionic-native/image-picker”: “^4.9.2”,
@ionic-native/in-app-browser”: “^4.7.0”,
@ionic-native/insomnia”: “^4.9.2”,
@ionic-native/native-audio”: “^4.9.2”,
@ionic-native/native-storage”: “^4.9.2”,
@ionic-native/onesignal”: “^4.9.2”,
@ionic-native/push”: “^4.9.2”,
@ionic-native/screen-orientation”: “^4.9.2”,
@ionic-native/splash-screen”: “^4.9.2”,
@ionic-native/status-bar”: “^4.9.2”,
@ionic/cloud-angular”: “^0.12.0”,
@ionic/storage”: “2.0.1”,
“android-camera-permission”: “^1.0.0”,
“android-versions”: “^1.3.0”,
“angular2-signaturepad”: “^2.8.0”,
“com-badrit-base64”: “^0.2.0”,
“com.synconset.imagepicker”: “^2.1.10”,
“cordova-android”: “6.4.0”,
“cordova-browser”: “5.0.1”,
“cordova-custom-config”: “^5.0.2”,
“cordova-ios”: “4.5.4”,
“cordova-plugin-add-swift-support”: “^1.7.2”,
“cordova-plugin-android-permissions”: “^1.0.0”,
“cordova-plugin-audioroute”: “^0.1.2”,
“cordova-plugin-audiotoggle”: “^1.0.3”,
“cordova-plugin-background-mode”: “git+https://github.com/katzer/cordova-plugin-background-mode.git”,
“cordova-plugin-camera”: “^3.0.0”,
“cordova-plugin-compat”: “1.2.0”,
“cordova-plugin-console”: “^1.1.0”,
“cordova-plugin-crop”: “^0.4.0”,
“cordova-plugin-crosswalk-certificate”: “^2.0.1”,
“cordova-plugin-crosswalk-webview”: “^2.4.0”,
“cordova-plugin-device”: “^1.1.7”,
“cordova-plugin-file”: “4.3.3”,
“cordova-plugin-file-opener2”: “^2.0.19”,
“cordova-plugin-file-transfer”: “^1.2.0”,
“cordova-plugin-inappbrowser”: “^3.0.0”,
“cordova-plugin-insomnia”: “^4.3.0”,
“cordova-plugin-ionic-webview”: “^1.2.1”,
“cordova-plugin-ios-camera-permissions”: “^1.2.0”,
“cordova-plugin-iosrtc”: “^4.0.2”,
“cordova-plugin-media”: “^3.0.1”,
“cordova-plugin-screen-orientation”: “^3.0.1”,
“cordova-plugin-splashscreen”: “^4.1.0”,
“cordova-plugin-statusbar”: “^2.4.2”,
“cordova-plugin-telerik-imagepicker”: “^2.2.2”,
“cordova-plugin-whitelist”: “^1.3.3”,
“cordova.plugins.diagnostic”: “^4.0.10”,
“es6-promise-plugin”: “^4.2.2”,
“ionic”: “^3.20.0”,
“ionic-angular”: “3.8.0”,
“ionic-cli”: “0.0.0”,
“ionic-plugin-keyboard”: “^2.2.1”,
“ionicons”: “3.0.0”,
“moment”: “^2.22.2”,
“moment-timezone”: “^0.5.21”,
“onesignal-cordova-plugin”: “^2.4.5”,
“phonegap-plugin-media-stream”: “^1.2.1”,
“rxjs”: “5.4.3”,
“socket.io-client”: “^2.1.1”,
“sw-toolbox”: “3.6.0”,
“time-ago-pipe”: “^1.3.2”,
“zone.js”: “0.8.18”
},
“devDependencies”: {
@ionic/app-scripts”: “3.0.1”,
“typescript”: “2.3.4”
},
“description”: “Secure Healthcare Solutions - Candidate App.”,
“cordova”: {
“plugins”: {
“cordova-plugin-device”: {},
“cordova-plugin-console”: {},
“cordova-plugin-whitelist”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-statusbar”: {},
“ionic-plugin-keyboard”: {},
“cordova-plugin-ionic-webview”: {},
“onesignal-cordova-plugin”: {},
“cordova-plugin-crosswalk-webview”: {
“XWALK_VERSION”: “23+”,
“XWALK_LITEVERSION”: “xwalk_core_library_canary:17+”,
“XWALK_COMMANDLINE”: “–disable-pull-to-refresh-effect”,
“XWALK_MODE”: “embedded”,
“XWALK_MULTIPLEAPK”: “true”
},
“cordova-plugin-camera”: {},
“com.synconset.imagepicker”: {
“PHOTO_LIBRARY_USAGE_DESCRIPTION”: “This app requires your photo library to allow you to select photos of timesheets and other documents.”
},
“cordova-custom-config”: {},
“cordova-plugin-iosrtc”: {},
“cordova-plugin-media”: {
“MICROPHONE_USAGE_DESCRIPTION”: " "
},
“android-camera-permission”: {},
“cordova-plugin-ios-camera-permissions”: {},
“cordova-plugin-insomnia”: {},
“cordova-plugin-add-swift-support”: {},
“phonegap-plugin-media-stream”: {},
“cordova-plugin-android-permissions”: {},
“cordova-plugin-audioroute”: {},
“cordova-plugin-audiotoggle”: {},
“cordova-plugin-screen-orientation”: {},
“cordova-plugin-crosswalk-certificate”: {},
“cordova-plugin-background-mode”: {},
“cordova-plugin-inappbrowser”: {},
“cordova-plugin-crop”: {},
“cordova-plugin-file-opener2”: {},
“cordova.plugins.diagnostic”: {},
“com-badrit-base64”: {},
“cordova-plugin-file”: {},
“cordova-plugin-file-transfer”: {}
},
“platforms”: [
“browser”,
“ios”,
“android”
]
}
}

this is my package.json files

so can you please help me out this

Hello,
not really.

Maybe it is worth to try and version with mayer number 3. 3.14.0 ist 2 years old. Maybe this works.
Does there error gives a hint what is asking for version 3 of these plugin?

Best regards, anna-liebt