【问题标题】:Error when launching a default Meteor application启动默认 Meteor 应用程序时出错
【发布时间】:2015-09-22 12:43:03
【问题描述】:

我在启动全新的默认 Meteor 应用程序时开始出现错误。

$meteor --version
流星1.2

这是我在 Mac OS 10.10.5 上重现的步骤:

  1. 重新启动计算机,打开终端窗口并运行...
  2. $ 流星创建测试
  3. $ cd 测试
  4. $流星
  5. 打开浏览器窗口http://localhost:3000

服务器错误:

=> App running at: http://localhost:3000/
Internal exception while processing message { msg: 'connect',
  version: '1',
  support: [ '1', 'pre2', 'pre1' ] } Cannot read property '_CurrentInvocation' of undefined TypeError: Cannot read property '_CurrentInvocation' of undefined
    at withoutInvocation (packages/meteor/packages/meteor.js:404:1)
    at bindAndCatch (packages/meteor/packages/meteor.js:414:1)
    at Object._.extend.setInterval (packages/meteor/packages/meteor.js:441:1)
    at [object Object]._.extend._startHeartbeatIntervalTimer (packages/ddp-common/packages/ddp-common.js:71:1)
    at [object Object]._.extend.start (packages/ddp-common/packages/ddp-common.js:66:1)
    at new Session (livedata_server.js:312:20)
    at [object Object]._.extend._handleConnect (livedata_server.js:1427:29)
    at livedata_server.js:1356:18

浏览器错误:

Uncaught TypeError: Cannot read property '_CurrentInvocation' of undefinedwithoutInvocation @ meteor.js:407bindAndCatch @ meteor.js:417_.extend.setInterval @ meteor.js:444_.extend._startHeartbeatIntervalTimer @ ddp-common.js:71_.extend.start @ ddp-common.js:66_.extend._livedata_connected @ ddp-client.js:4158onMessage @ ddp-client.js:3310(anonymous function) @ ddp-client.js:2704_.each._.forEach @ underscore.js:134_.extend._launchConnection.self.socket.onmessage @ ddp-client.js:2703REventTarget.dispatchEvent @ ddp-client.js:143SockJS._dispatchMessage @ ddp-client.js:1128SockJS._didMessage @ ddp-client.js:1186SockJS.websocket.that.ws.onmessage @ ddp-client.js:1333
meteor.js:862 Received error from server:  Must connect first
meteor.js:864 For:  Object {msg: "sub", id: "ARDnnLu2X7G7WfWgx", name: "meteor_autoupdate_clientVersions", params: Array[0]}id: "ARDnnLu2X7G7WfWgx"msg: "sub"name: "meteor_autoupdate_clientVersions"params: Array[0]length: 0__proto__: Array[0]__proto__: Object

应用程序似乎运行正常。这个错误是什么意思?

【问题讨论】:

    标签: meteor


    【解决方案1】:

    运行 meteor update 将 Meteor 更新到版本 1.2.0.1

    阅读更多关于error的信息。

    【讨论】:

    • 当我运行curl https://install.meteor.com/ | sh 时错误消失了。这个错误似乎是在大约 10 小时前出现的。我没有明确安装 Meteor 1.2。这是否意味着每次运行meteor create ...时都会从源下载最新版本的Meteor?
    • 不,我不这么认为。也许您的.meteor/release 文件包含METEOR@1.2
    猜你喜欢
    • 2020-02-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多