0
これは、バーベル、es7などと関係があります。基本的なAureliaプロジェクトにエラーがあります。 in app.js
このコード行は、Visual StudioでExpected ';'
export class App {
configureRouter(config, router) { /// <== here is the error
this.router = router;
config.title = 'Aurelia';
config.map([
{ route: ['', 'home'], name: 'home', moduleId: 'home/index' },
{ route: 'users', name: 'users', moduleId: 'users/index', nav: true },
{ route: 'users/:id/detail', name: 'userDetail', moduleId: 'users/detail' },
{ route: 'files/*path', name: 'files', moduleId: 'files/index', href:'#files', nav: true }
]);
}
}
を示している私はすべてのデフォルトのオプションを使用してプロジェクトを作成し、それがbabel.Iを使用しているが、この構文はかなり一般的であると思いました。ここに私のconfig.jsがあります。
あなたES6は、おそらく私はこのに遭遇してきた問題 – weagle08
VS、エラーは通常、記載されている行の前にも発生する...正しいです。 50行前の文法が間違っていると、50行後に、特に中括弧やセミコロンの場合にのみ、それが上書きされる可能性があります。 –