刚刚将我的项目升级到 1.2 并运行它,突然我的控制台输出变成了这样。
我已经尝试添加/删除一些包,但似乎没有任何效果,而且我似乎想不出任何可能由迁移引起的兼容性问题。
这是我的包裹 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/