访问 Meteor 1.4 中的 {{> atForm}} 模板

Get access to {{> atForm}} Template in Meteor 1.4

我正在尝试将 useraccounts:unstyled 包导入到我的代码中。我必须 import 做什么才能访问 {{> atForm}} 模板。这是流星 1.4.

我对 Meteor 还是很陌生,所以我很感激每一个答案。

这是我的模板代码:

<template name="LoginModal">
  <div class="login-modal">
    <i class=fa fa-close close-login></i>
    {{> atForm}}
  </div>
</template>

我在浏览器控制台中收到了一堆这样的警告:

Exception in template helper: TypeError: Cannot read property 'form' of undefined at AT.getState (http://localhost:3000...

我解决了这个问题。正如我所说,我是 Meteor 的新手 - 所以这是一件简单的事情。我安装了 accounts-ui 软件包,而不是 accounts-base 软件包。

所以,如果你有同样的错误,执行:

meteor add accounts-base

在您的控制台中。