here . 我遇到了更新问题,即我无法为"new"ir-6ren">
gpt4 book ai didi

javascript - "Uncaught ReferenceError: Template is not defined"(路由器、Meteor、Mongo 相同)

转载 作者:可可西里 更新时间:2023-11-01 09:58:00 27 4
gpt4 key购买 nike

正在尝试端口 Crowducate从 meteor 0.8 到 1.0。我跑了“ meteor 更新”。Meteor 1.0 的分支是 --> here .

我遇到了更新问题,即我无法为"new"iron:router 移除“旧”iron-router。所以目前,两个版本都安装了(当然,这必须改变)。 meteor 包文件:

# Meteor packages used by this project, one per line.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

# Packages by Meteor
standard-app-packages
preserve-inputs
audit-argument-checks
spiderable
less
coffeescript
accounts-password
accounts-facebook
accounts-google
accounts-ui

# Packages by community
minimongoid
iron-router
iron:router
kaptron:minimongoid

# Packages by Manuel Schoebel

运行 meteor :出现以下错误:

enter image description here

最后,我也得到如下错误:

Exception in defer callback: TypeError: Cannot read property 'insert' of undefined
at Utils.extend.autoRender (http://localhost:3000/packages/iron-router.js?af9f4791b8af4582a37d93bcade1eed163a976a8:1636:17)
at http://localhost:3000/packages/iron-router.js?af9f4791b8af4582a37d93bcade1eed163a976a8:1465:16
at _.extend.withValue (http://localhost:3000/packages/meteor.js?61916b1060b33931a21f104fbffb67c2f3d493c5:945:17)
at http://localhost:3000/packages/meteor.js?61916b1060b33931a21f104fbffb67c2f3d493c5:430:45
at Object.<anonymous> (http://localhost:3000/packages/meteor.js?61916b1060b33931a21f104fbffb67c2f3d493c5:973:22)
at onGlobalMessage (http://localhost:3000/packages/meteor.js?61916b1060b33931a21f104fbffb67c2f3d493c5:367:23)

所以大多数东西都是未定义的。我还在本地将 Meteor.Collection 更改为 Mongo.Collection。现在,两者都未定义。

感谢您的帮助,阿米尔

旁注:一直在寻找该项目的合作者。联络我。 :)

最佳答案

鉴于我是通过陨石安装 Iron Router,我也遇到了这些错误:

$ mrt add iron-router

这安装了与 Meteor 1.x 不兼容的旧版本。尝试通过 meteorite 删除 iron-router 并通过 meteor 安装:

$ mrt remove iron-router
$ meteor add iron:router

为了安全起见,在重新启动之前运行重置:

$ meteor reset
$ meteor

关于javascript - "Uncaught ReferenceError: Template is not defined"(路由器、Meteor、Mongo 相同),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26997708/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com