我是很新,流星正在此錯誤:意外標記錯誤
=> Errors prevented startup:
While building the application:
lib/packages/iron-router/examples/hooks/hooks.js:30:58: Unexpected token ;
=> Your application has errors. Waiting for file change.
它突然出現在添加Iron-Router到我的應用程序。該錯誤是指this file,特別是開始ready: promiseToReady
行:
this.route('adminPage', {
path: '/admin',
// 10. 3rd party API calls that are similar to waitOns:
waitOn: function() {
return {
// this is made up but I do have code conceptually similar to this
ready: promiseToReady(GoogleApi.call('/foo/bar'));
}
}
});
我認爲函數返回正在等待函數調用,而是它得到一個表達式。 – Izekid