When a package defines the constructor, the value of member ‘webRoot’ becomes ‘undefined’ at runtime. Without any constructor, correctly returns the URL.
class SomePackage extends DG.Package {
constructor() { super(); }
startApp() {
let url = this.webRoot; //becomes 'undefined' when constructor is defined
}
}