添加物化包时出现流星错误 [英] meteor error on adding materialize package

查看:80
本文介绍了添加物化包时出现流星错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚创建了一个空的流星应用程序,它看起来像通过运行 materialize 包到流星应用程序中当我启动流星应用程序时,c0>在浏览器控制台中产生以下错误:

I just created an empty meteor app and it looks like including materialize package into meteor application by running meteor add materialize:materialize produces the following error in browser console when I start the meteor application:

Uncaught TypeError: Cannot set property 'guid' of undefined(anonymous function) @ materialize.js:2(anonymous function) @ materialize_materialize.js?dc17392a9a3ee90d7260ca5fb3f114186ddbe932:42(anonymous function) @ materialize_materialize.js?dc17392a9a3ee90d7260ca5fb3f114186ddbe932:51
global-imports.js?f3a8210e13a775671b88b311040d18b5595730c1:3 Uncaught TypeError: Cannot read property 'Materialize' of undefined(anonymous function) @ global-imports.js?f3a8210e13a775671b88b311040d18b5595730c1:3
template.test-materialize.js?db9efeb690fbdd904fe4b351652e4822e8f5d459:2 Uncaught ReferenceError: Meteor is not defined(anonymous function) @ template.test-materialize.js?db9efeb690fbdd904fe4b351652e4822e8f5d459:2(anonymous function) @ template.test-materialize.js?db9efeb690fbdd904fe4b351652e4822e8f5d459:18
test-materialize.js?c2e184d448010d8345127ffbaf10ce04b6d355e3:1 Uncaught ReferenceError: Meteor is not defined(anonymous function) @ test-materialize.js?c2e184d448010d8345127ffbaf10ce04b6d355e3:1(anonymous function) @ test-materialize.js?c2e184d448010d8345127ffbaf10ce04b6d355e3:25

推荐答案

最新版本的软件包似乎是一个新问题.这样做可以解决问题:

This seems to be a new problem with the latest version of the package. Do this to fix the problem:

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

并在此处查看GitHub问题: https://github.com/Dogfalo/materialize/issues/2043

And see here for the GitHub issue: https://github.com/Dogfalo/materialize/issues/2043

这篇关于添加物化包时出现流星错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆