更新到 1.2 后未定义 meteor 和模板

标签 meteor

刚刚将我的项目升级到 1.2 并运行它,突然我的控制台输出变成了这样。

enter image description here

我已经尝试添加/删除一些包,但似乎没有任何效果,而且我似乎想不出任何可能由迁移引起的兼容性问题。

这是我的包裹 list

accounts-password        1.1.3  Password support for accounts
blaze-html-templates     1.0.1  Compile HTML templates into reactive UI with  Meteor Blaze
check                    1.0.6  Check whether a value matches a pattern
dburles:google-maps      1.1.4  Google Maps Javascript API v3
ejson                    1.0.7  Extended and Extensible JSON library
iron:router              1.0.9  Routing specifically designed for Meteor
jquery                   1.11.4  Manipulate the DOM using CSS selectors
logging                  1.0.8  Logging facility.
materialize:materialize  0.97.1  Materialize (official): A modern responsive    front-end framework based on Material Design
meteor-base              1.0.1  Packages that every Meteor app needs
mobile-experience        1.0.1  Packages for a great mobile user experience
momentjs:moment          2.10.6  Moment.js (official): parse, validate,   manipulate, and display dates - official Meteor packaging
mongo                    1.1.1  Adaptor for using MongoDB and Minimongo over DDP
random                   1.0.4  Random number generator and utilities
reload                   1.1.4  Reload the page while preserving application state.
rzymek:fullcalendar      2.3.1  Full-sized drag & drop event calendar (jQuery plugin)
session                  1.1.1  Session variable
spacebars                1.0.7  Handlebars-like template language for Meteor
standard-minifiers       1.0.0  Standard minifiers used with Meteor apps by     default.
tracker                  1.0.8  Dependency tracker to allow reactive callbacks

最佳答案

这是与最新版本的 materialize:materialize@0.97.1 相关的问题,它破坏了整个 Meteor 应用程序。

https://github.com/Dogfalo/materialize/issues/2037

在修复可用之前,您必须坚持使用 0.97.0 版本:

meteor remove materialize:materialize
meteor add materialize:materialize@=0.97.0

@= 语法将强制 Meteor 保留此版本,即使您 meteor update 也是如此。

关于更新到 1.2 后未定义 meteor 和模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32725726/

相关文章:

node.js - Meteor 如何接收对 MongoDB 查询结果的更新?

meteor - 邀请用户就项目进行协作

mongodb - 根据 Meteor 和 MongoDB 中存储在另一个集合中的 ID 从一个集合中选择文档

css - 如何在 Meteor-React 设置中使用 D3-force 渲染 D3?

javascript - 在 Meteor 中,如何使用从 MongoDB 集合中提取的先前插入的对象预填充表单加载?

javascript - CKeditor 输出 Html。如何格式化它以正确显示,而不仅仅是蹩脚的 html?

javascript - Meteor JS - 如何结合添加和编辑模板

javascript - 为什么我的 Meteor 应用程序无法识别我的功能?

Meteor.js 提交事件

javascript - 如何使用 selectize.js 获取选定的 id 和文本值。 meteor ?