这是关于 Meteor: "=> Exited with code: 8" error 的后续问题.
自第3章起 Discover Meteor ,每当我运行服务器并访问 http://localhost:3000/
URL(或应用程序的任何其他页面)时,我只会看到一个普通的灰色屏幕,没有任何内容关于它:
我决定继续学习本教程,希望接下来的章节能够通过更新一些文件来修复错误,但事实并非如此。
服务器日志中没有错误,因此我无法在这里重现它们。
不过,你可以在GitHub上找到该项目的所有文件:https://github.com/thibaudclement/microscope
更新:以下是客户端控制台日志:
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)
知道我做错了什么吗?
或者至少,我应该从哪里开始寻找问题所在?
最佳答案
问题可能是您正在使用旧版本的书或使用显微镜(不确定)
我克隆了您的应用程序并尝试运行
在你的 .meteor/packages 文件中
改变
iron-router
spin
至
iron:router
sacha:spin
这些更改后,它对我来说工作正常
关于javascript - 发现 meteor ,第 3-5 章 : plain grey screen and no data,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31420980/