meteor + npm update

时间:2016-09-08 12:34:52

标签: meteor

我的应用程序使用最新的Meteor 1.4.1.1和React for UI,并仅将Blaze用于accounts-ui。它运行良好,直到昨天我'流星更新'和'npm更新'。现在,应用程序显示空白页面,因为TypeError: HTML.Raw is not a function(下面)中的异常(template.main.js),Blaze根据提供React根目录的简单main.html编译。

Template.body.addContent((function() {
  var view = this;
  return HTML.Raw('<div id="app-root"></div>');
}));
Meteor.startup(Template.body.renderToDocument);

当我在控制台中查看HTML对象时: -

Checking the HTML.Raw in console

我是Meteor的新手,不知道发生了什么。我猜Blaze的全局HTML对象必须在此处使用.raw方法。但为什么它会丢失?

0 个答案:

没有答案