@aditbharadwaj wrote:
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx'; //my function Signup(){ //this.navCtrl.push(SignupPage); const browser = this.iab.create('http://reveriebox.com/my-account/','_self',{location:'no'}); }
My package.json
{ "name": "ionic-hello-world", "version": "0.0.0", "author": "Ionic Framework", "homepage": "http://ionicframework.com/", "private": true, "scripts": { "clean": "ionic-app-scripts clean", "build": "ionic-app-scripts build --prod", "ionic:build": "ionic-app-scripts build", "ionic:serve": "ionic-app-scripts serve" }, "dependencies": { "@angular/common": "4.0.2", "@angular/compiler": "4.0.2", "@angular/compiler-cli": "4.0.2", "@angular/core": "4.0.2", "@angular/forms": "4.0.2", "@angular/http": "4.0.2", "@angular/platform-browser": "4.0.2", "@angular/platform-browser-dynamic": "4.0.2", "@ionic-native/camera": "^3.12.1", "@ionic-native/core": "^4.2.1", "@ionic-native/google-maps": "^3.12.1", "@ionic-native/in-app-browser": "^5.5.1", "@ionic-native/network": "^4.1.0", "@ionic-native/paypal": "^4.2.1", "@ionic-native/social-sharing": "^4.2.1", "@ionic-native/splash-screen": "3.4.2", "@ionic-native/status-bar": "3.4.2", "@ionic/storage": "2.0.1", "@ngx-translate/core": "^7.0.0", "@ngx-translate/http-loader": "^0.1.0", "card.io.cordova.mobilesdk": "^2.1.0", "com.paypal.cordova.mobilesdk": "^3.5.0", "com.razorpay.cordova": "^1.4.3", "cordova-android": "7.1.4", "cordova-browser": "5.0.3", "cordova-ios": "4.5.4", "cordova-plugin-console": "^1.1.0", "cordova-plugin-device": "^1.1.7", "cordova-plugin-inappbrowser": "3.0.0", "cordova-plugin-network-information": "^1.3.3", "cordova-plugin-splashscreen": "^4.1.0", "cordova-plugin-statusbar": "^2.4.2", "cordova-plugin-whitelist": "^1.3.3", "cordova-plugin-x-socialsharing": "^5.4.4", "cordova-sqlite-storage": "^2.0.4", "es6-promise-plugin": "^4.2.2", "ionic-angular": "3.1.1", "ionic-plugin-keyboard": "^2.2.1", "ionicons": "3.0.0", "rxjs": "5.1.1", "sw-toolbox": "3.4.0", "zone.js": "^0.8.5" }, "devDependencies": { "@ionic/app-scripts": "^3.2.2", "ionic": "3.20.0", "typescript": "~2.2.1" }, "cordovaPlugins": [ "cordova-plugin-whitelist", "cordova-plugin-statusbar", "cordova-plugin-device", "cordova-plugin-console", "ionic-plugin-keyboard", "cordova-plugin-splashscreen" ], "cordovaPlatforms": [], "description": "shop: An Ionic project", "cordova": { "plugins": { "cordova-plugin-console": {}, "cordova-plugin-device": {}, "cordova-plugin-splashscreen": {}, "cordova-plugin-statusbar": {}, "cordova-plugin-whitelist": {}, "ionic-plugin-keyboard": {}, "com.paypal.cordova.mobilesdk": {}, "cordova-plugin-x-socialsharing": {}, "com.razorpay.cordova": {}, "cordova-plugin-inappbrowser": {} }, "platforms": [ "ios", "browser", "android" ] } }
When ever iam building my app for prod this error is coming
Error: Metadata version mismatch for module E:/my projects/ionicnew/Reverie_ionic/node_modules/@ionic-native/in-app-browser/ngx/index.d.ts, found version 4, expected 3i have the correct version installed and if i dont use /ngx then i cant use the variable inappbrowser ?
please help what can i do ?
Posts: 1
Participants: 1