Not found template


#1

I want add loading template to my app. I add package sacha:spin.
My router file:
Router.configure({
loadingTemplate: ‘loading’,
waitOn: function () {return Meteor.subscribe(‘tasks’);}
});
Router.onBeforeAction(‘loading’);

My template:
template name=“loading”>
{{> spinner}}
/template>

On my local machine all works fine, but when i deployed on server - i gat an error on boot application: Couldn’t find a template named “loading” or “loading”. Are you sure you defined it?
Loading template lives in /client/views.
Router file lives in /lib
I read several forums describing similar problems and after i add my “loading” template code to main.html file - it works great!
can somebody tell the reason for such behavior?