这是关于Meteor: "=> Exited with code: 8" error的后续问题。
从 Discover Meteor 的第3章开始,每当我运行服务器并访问http://localhost:3000/
URL(或应用程序的任何其他页面)时,我只会得到一个简单的,灰色屏幕,上面没有任何内容:
我决定继续学习本教程,希望下一章能够通过更新某些文件来修复错误,但事实并非如此。
服务器日志中没有错误,因此我无法在此处重现它们。
但是,您可以在GitHub上找到该项目的所有文件:https://github.com/thibaudclement/microscope
UPDATE :这是客户端控制台日志:
Uncaught TypeError: Template.__create__ is not a function
meteor.js:225 Uncaught TypeError: Cannot read property 'prototype' of undefined
iron-router.js:1475 Uncaught TypeError: undefined is not a function
global-imports.js:3 Uncaught TypeError: Cannot read property 'RouteController' of undefined
template.layout.js:2 Uncaught ReferenceError: Template is not defined
template.loading.js:2 Uncaught ReferenceError: Template is not defined
template.post_item.js:2 Uncaught ReferenceError: Template is not defined
template.post_page.js:2 Uncaught ReferenceError: Template is not defined
template.posts_list.js:2 Uncaught ReferenceError: Template is not defined
template.main.js:2 Uncaught ReferenceError: Template is not defined
router.js:1 Uncaught ReferenceError: Router is not defined
post_item.js:1 Uncaught ReferenceError: Template is not defined
posts_list.js:1 Uncaught ReferenceError: Template is not defined
posts.js:1 Uncaught ReferenceError: Meteor is not defined
meteor.js:888 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?43b7958c1598803e94014f27f5f622b0bddc0aaf:955:17)
at http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:435:45
at Object.<anonymous> (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:983:22)
at onGlobalMessage (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:372:23)
知道我做错了什么?
或者至少,我应该从哪里开始寻找出错的地方?
答案 0 :(得分:1)
问题可能是您正在使用旧版本的书或使用显微镜(不确定)
我克隆了您的应用并尝试运行
你的.meteor / packages文件中的
更改
iron-router
spin
到
iron:router
sacha:spin
在这些变化之后它对我来说很好用