@lqrz wrote:
- Im trying to debug my ionic4 app using vscode cordovatools, but when i launch the
Serve to browser (ionic serve)
option, I get an error back:Cannot perform Ionic serve/watch for project type: angular
Comment aside: my project runs OK if I run
ionic serve
from a terminal.
- Cordova VS Code extension version: 1.8.6
- VSCode version: 1.37.0
- OS platform and version: osx / centos7
- NodeJS version: v10.16.3
- Cordova version: 9.0.0
This is my
laucn.json
config entry:{ "name": "Serve to the browser (ionic serve)", "type": "cordova", "request": "launch", "platform": "serve", "cwd": "${workspaceFolder}", "devServerAddress": "http://localhost", "sourceMaps": true, "ionicLiveReload": true, "devServerTimeout": 300000, "runArguments": ["--no-open"] }
My
ionic.config.json
indicates it’s an angular type ionic app (this is done by default by the ionic CLI):{ "name": "mobileapp", "integrations": { "cordova": {} }, "type": "ionic-angular", "app_id": "" }
And this is the output error:
Parameter target is not set - emulator will be used Launching for serve (This may take a while)... Starting Ionic dev server (live reload: true) [ERROR] Cannot perform Ionic serve/watch for project type: angular. If you'd like the CLI to try to detect your project type, you can unset the type attribute in ionic.config.json. The Ionic live reload server exited unexpectedly
Posts: 1
Participants: 1