When starting the app in the browser, i get this error:
TypeError: Cannot read property ‘launchBrowser’ of undefined.
does someone know how i can solve this? thanks.
When starting the app in the browser, i get this error:
TypeError: Cannot read property ‘launchBrowser’ of undefined.
does someone know how i can solve this? thanks.
I have just started seeing this as well when running
ionic serve -l --address
however if I run it without –address then its running fine.
So this just means I can’t specify an IP address at the moment, did you manage to solve this?
Please post ionic info and package.json.
Ionic 3.7.0
{
"name": "xxxxx-native-v1",
"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",
"test-coverage": "ng test --code-coverage",
"test": "ng test"
},
"dependencies": {
"@agm/core": "^1.0.0-beta.0",
"@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",
"@ionic-native/android-permissions": "^4.1.0",
"@ionic-native/call-number": "^4.1.0",
"@ionic-native/camera": "3.10.2",
"@ionic-native/core": "^3.10.2",
"@ionic-native/email-composer": "^4.1.0",
"@ionic-native/geolocation": "^3.12.1",
"@ionic-native/google-maps": "^3.12.1",
"@ionic-native/image-picker": "^4.1.0",
"@ionic-native/launch-navigator": "^4.1.0",
"@ionic-native/network": "^3.12.1",
"@ionic-native/sms": "^4.1.0",
"@ionic-native/splash-screen": "3.10.2",
"@ionic-native/status-bar": "3.10.2",
"@ionic/storage": "2.0.1",
"aws-sdk": "^2.77.0",
"call-number": "^1.0.1",
"cordova-android": "^6.2.3",
"cordova-ios": "^4.4.0",
"cordova-plugin-actionsheet": "^2.3.3",
"cordova-plugin-android-permissions": "^1.0.0",
"cordova-plugin-camera": "^2.4.1",
"cordova-plugin-compat": "^1.1.0",
"cordova-plugin-console": "^1.0.7",
"cordova-plugin-device": "^1.1.6",
"cordova-plugin-dialogs": "^1.3.3",
"cordova-plugin-email": "^1.2.6",
"cordova-plugin-geolocation": "^2.4.3",
"cordova-plugin-googlemaps-sdk": "git+https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk.git",
"cordova-plugin-image-picker": "^1.1.3",
"cordova-plugin-network-information": "^1.3.3",
"cordova-plugin-splashscreen": "^4.0.3",
"cordova-plugin-statusbar": "^2.2.3",
"cordova-plugin-telerik-imagepicker": "^2.1.8",
"cordova-plugin-whitelist": "^1.3.2",
"cordova-sms-plugin": "^0.1.11",
"ionic-angular": "3.4.2",
"ionic-native": "^2.9.0",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"mobile-detect": "^1.3.6",
"moment": "^2.17.1",
"rxjs": "5.4.0",
"sw-toolbox": "3.6.0",
"uk.co.workingedge.phonegap.plugin.launchnavigator": "^4.0.3",
"zone.js": "0.8.12"
},
"devDependencies": {
"@angular/cli": "^1.2.0",
"@angular/router": "^4.1.3",
"@ionic/app-scripts": "1.3.7",
"@ionic/cli-plugin-cordova": "1.4.1",
"@ionic/cli-plugin-ionic-angular": "1.3.2",
"@types/jasmine": "^2.5.53",
"@types/node": "^8.0.10",
"ionic": "3.7.0",
"ionic-mocks": "0.10.1",
"jasmine-core": "^2.6.4",
"jasmine-spec-reporter": "^4.1.1",
"karma": "^1.7.0",
"karma-chrome-launcher": "^2.2.0",
"karma-cli": "^1.0.1",
"karma-coverage-istanbul-reporter": "^1.3.0",
"karma-jasmine": "^1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"typescript": "2.3.3"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-network-information": {},
"cordova-plugin-geolocation": {
"GEOLOCATION_USAGE_DESCRIPTION": " "
},
"cordova-plugin-console": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-whitelist": {},
"ionic-plugin-keyboard": {},
"cordova-plugin-camera": {},
"com.synconset.imagepicker": {
"PHOTO_LIBRARY_USAGE_DESCRIPTION": "your usage message"
},
"cordova-sms-plugin": {},
"mx.ferreyra.callnumber": {},
"cordova-plugin-email": {},
"cordova-plugin-android-permissions": {},
"uk.co.workingedge.phonegap.plugin.launchnavigator": {}
},
"platforms": [
"android",
"ios"
]
}
}
I have the same error, and until now i cant resolve
Any update on this? I still cannot start the browser
Hello @aelhobbi i had the same error a week ago and i found a solution yesterday.
If you are using ionic version 3.5.6, you have to downgrade to version 3.5.0, “npm uninstall ionic -g” to uninstall and to install the lowest version “npm install -g ionic@3.5.0”.
After this remove the node_modules/ folder on your project.
Then install again with: npm install and try ionic serve again
Worked perfectly! Thank you.
The problem is still there on version 3.10.3 however
ionic serve -address 0.0.0.0 seams to work.
The server will bind all on existing devices not to a specific address.
This may help in some cases