【发布时间】:2015-07-12 08:12:25
【问题描述】:
我有这个错误,但它没有指定哪个代码行有问题。 有什么方法可以缩小我需要关注的代码范围吗?
不确定这是否是相关问题,但是当我提交文档并且它应该识别我的user.username 时,但是当 html 显示 {{author}} 时它出现空白。
集合的代码(公共/服务器的共享文件夹)如下:
var post = _.extend(postAttributes, {
userId: user._id,
author: user.username
});
感谢您的帮助!
更新:
将 UserAccount 代码转移到服务器文件夹后的新错误消息。
Exception while simulating the effect of invoking 'postInsert'
"Match error: Unknown key in field message"
【问题讨论】:
-
“我有这个错误,但它没有指定哪个代码行有问题。” 那它为什么指向
mongo.js:472?它准确地告诉你哪条线路有问题。 -
@Cerbrus 为缺少的行道歉,已附上它们
标签: javascript collections meteor