Aurelia skeleton sample - dist/main.js not found? -
i’m trying run skeleton-navigation-typescript-vs on windows machine fails – see welcome screen , in developer tools there message:
http://localhost:9000/dist/main.js failed load resource: server responded status of 404
i docs – step step. http://aurelia.io/docs.html#/aurelia/framework/1.0.0-beta.1.0.8/doc/article/a-production-setup.
when check in chrome developer tools in sources tab there css, jspm_packages, lib , index.html – there no dist dir.
is working sample? i’m doing wrong?
you not using index.html
provided tutorial. go index.html
, replace this:
<body aurelia-app="main">
with this:
<body aurelia-app>
when specify value aurelia-app
attribute, framework js file start application. more information @ http://aurelia.io/docs.html#/aurelia/framework/1.0.0-beta.1.0.8/doc/article/app-configuration-and-startup
edit
create main.js file inside src folder, this:
export function configure(aurelia) { aurelia.use .standardconfiguration() .developmentlogging(); aurelia.start().then(() => aurelia.setroot()); }
re-run gulp-watch , see happens now.
Comments
Post a Comment