cordova-android
cordova-android copied to clipboard
Error when using cordova-simulate
Bug Report
Problem
What is expected to happen?
Start simulator in browser when debuging with VSCode
What does actually happen?
Cannot launch simulator in web browser with VSCode
Information
VSCode cordova uses package cordova-serve that calls Api class from each platform with no parameters. In cordova-android the root definition was changed from this.root = path.resolve(__dirname, '..'); (v.9.1.0) to this.root = platformRootDir; (v.10.0.1).
When trying to set the app main path (line 66) const appMain = path.join(this.root, 'app', 'src', 'main'); because the first parameter is undefined.
Command or Code
Environment, Platform, Device
Version information
Cordova: 10.0.0 Cordova-android: 10.0.1 SO: Windows 10 PRO
Checklist
- [ x] I searched for existing GitHub issues
- [ x] I updated all Cordova tooling to most recent version
- [ x] I included all the necessary information above