Unable to read property '_liveui' from null

I get errors on the client side (console.log), but my application is working (I can add users)

The error is as follows: Uncaught TypeError: Unable to read property '_liveui' from null

The project is in my repo: https://github.com/thiagofm/statusfyit

What's happening?

+3
source share
1 answer

The meteor updated its API as this question was asked, so the source code no longer runs directly.

Using jQuery.html to insert template rendering results is not the usual approach. Better use the functionality of pen templates.

For example, replace:

$().ready(function(){
  hello = Meteor.ui.render(function(){
    return Template.hello();
  });
  $('body').html(hello);
});

WITH

<body>
  {{> hello}}
</body>

, Session . :

<template name="foo">
  {{#if showNewUserDialog}}
    {{> newUserDialog}}
  {{else}}
    other stuff
  {{/if}}
</template>

<template name="newUserDialog">
  some stuff
</template>

Template.foo.showNewUserDialog = function () {
  return Session.get('showNewUserDialog');
};
Template.other.events({
  'click #new_user': function () {
     Session.set('showNewUserDialog', true);
  }
});
+1

All Articles