Using the following code:
import { Aurelia } from "aurelia-framework";
export async function configure(aurelia) {
aurelia.use.standardConfiguration().developmentLogging();
await aurelia
.start()
.then(a => a.setRoot())
//.then(a => a.setRoot("app.js", document.body))
.catch(ex => {
document.body.textContent = `Bootstrap error: ${ex}`;
});
}
I get this error:
Bootstrap error: Error: No applicationHost was specified.
If I switch to use .then(a => a.setRoot("app.js", document.body)) instead of .then(a => a.setRoot()) everything works.
In Aurelias own quick start guide they use the following code:
import {Aurelia} from 'aurelia-framework';
export function configure(aurelia: Aurelia) {
aurelia.use.basicConfiguration();
aurelia.start().then(() => aurelia.setRoot());
}
If i switch to use.basicConfiguration in my code I still get the same error.
https://aurelia.io/docs/tutorials/creating-a-todo-app#getting-ready-to-render
Codesandbox to reproduce: