Meteor: not found a template when the application is downloaded for sale



  • Add the load indicator to the annex. Set a bagsacha:spin. I wrote it in the router.

    Router.configure({
        loadingTemplate: 'loading',
        waitOn: function () {return Meteor.subscribe('tasks');}
    });
    

    Router.onBeforeAction('loading');

    It's just a packet.

    <template name="loading">
    {{> spinner}}
    </template>

    Everything works fine in a local car, but as soon as it's put on the earring, a message comes up when the application is downloaded:
    Couldn't find a template named "loading" or "loading." Are you sure you defined it?
    The router file is in Lib's folder. I tried to put a box of loading.html in there, but it didn't help if it was possible that a Router was loaded before the template and saw it.
    Has anyone encountered such a problem?



  • So a solution to the problem was:
    placed the loading template from the loading file.html in the main.html file, deleted, and it worked properly.
    Who can tell the logic of what's going on?




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2