当我尝试加载my site时,我不断收到错误,但当我点击(或刷新)时,它会加载。我安装了Kadira,我的预感是它与我不断得到的这个错误有关。我是Meteor的新手,所以任何有关如何解决这个问题或指向正确方向的帮助将不胜感激。
Error: Cannot read property 'helpers' of undefined
TypeError: Cannot read property 'helpers' of undefined
at http://telescope69-31112.onmodulus.net/098c59227b0946cb6e4d16eb639bd6614d1f3aa0.js:178:2385
at HTMLDocument.o (http://telescope69-31112.onmodulus.net/098c59227b0946cb6e4d16eb639bd6614d1f3aa0.js:3:4858)
控制台有时也会显示此信息。当我点击时,最终会加载,这就消失了。
You called Router.path for a route named posts_top but that route doesn't seem to exist. Are you sure you created it? e33d8ba9590e57dfcfd2efb1dbbbfae4459966a7.js:109
You called Router.path for a route named posts_new but that route doesn't seem to exist. Are you sure you created it? e33d8ba9590e57dfcfd2efb1dbbbfae4459966a7.js:109
You called Router.path for a route named posts_best but that route doesn't seem to exist. Are you sure you created it? e33d8ba9590e57dfcfd2efb1dbbbfae4459966a7.js:109
You called Router.path for a route named posts_digest but that route doesn't seem to exist. Are you sure you created it? e33d8ba9590e57dfcfd2efb1dbbbfae4459966a7.js:109
You called Router.path for a route named postsDaily but that route doesn't seem to exist. Are you sure you created it? e33d8ba9590e57dfcfd2efb1dbbbfae4459966a7.js:109
You called Router.path for a route named posts_top but that route doesn't seem to exist. Are you sure you created it? e33d8ba9590e57dfcfd2efb1dbbbfae4459966a7.js:109
You called Router.path for a route named posts_new but that route doesn't seem to exist. Are you sure you created it? e33d8ba9590e57dfcfd2efb1dbbbfae4459966a7.js:109
You called Router.path for a route named posts_best but that route doesn't seem to exist. Are you sure you created it? e33d8ba9590e57dfcfd2efb1dbbbfae4459966a7.js:109
You called Router.path for a route named posts_digest but that route doesn't seem to exist. Are you sure you created it? e33d8ba9590e57dfcfd2efb1dbbbfae4459966a7.js:109
You called Router.path for a route named postsDaily but that route doesn't seem to exist. Are you sure you created it? e33d8ba9590e57dfcfd2efb1dbbbfae4459966a7.js:109
答案 0 :(得分:0)
通过“HTMLDocument.o”判断,看起来您的应用程序正在生产中运行。
尝试在调试模式(meteor run
)中本地运行它,并查看您在浏览器控制台中获得的错误。