4
votes

I’m trying to run skeleton-navigation-typescript-vs on my windows machine but it fails – I see only welcome screen and in developer tools there is a message:

http://localhost:9000/dist/main.js Failed to load resource: the server responded with a status of 404

I do everything from the docs – step by step. http://aurelia.io/docs.html#/aurelia/framework/1.0.0-beta.1.0.8/doc/article/a-production-setup.

When I check in chrome developer tools in Sources tab there are only css, jspm_packages, lib and index.html – there is no dist dir.

Is this working sample? What I’m doing wrong?

1
do you have any errors in console when running gulp build or gulp watch?valichek

1 Answers

4
votes

You are not using the index.html provided by the tutorial. Go to your index.html and replace this:

<body aurelia-app="main">

with this:

<body aurelia-app>

When you specify a value to the aurelia-app attribute, the framework will look for a js file to start the application. More information at http://aurelia.io/docs.html#/aurelia/framework/1.0.0-beta.1.0.8/doc/article/app-configuration-and-startup

EDIT

Create a main.js file inside src folder, like this:

export function configure(aurelia) {
  aurelia.use
    .standardConfiguration()
    .developmentLogging();

  aurelia.start().then(() => aurelia.setRoot());
}

Re-run gulp-watch and see what happens now.