1.0.3.1更新后的流星问题

时间:2015-01-29 17:59:00

标签: javascript meteor

昨天我跑了meteor update并更新到1.0.3.1,它打破了我正在做的工作。

我不确定是什么破坏了,但即使与流星一起发布的hello world项目也被打破了。当我这样做时:

meteor create test
cd test
meteor run

我收到这些错误:

minimongo.js:3193 Uncaught SyntaxError: Unexpected end of input

ddp.js:3557 Uncaught SyntaxError: Unexpected end of input

follower-livedata.js:24 Uncaught TypeError: Cannot read property 'DDP' of undefined

application-configuration.js:24 Uncaught TypeError: Cannot read property 'DDP' of undefined

mongo.js:1000 Uncaught SyntaxError: Unexpected end of input

autoupdate.js:25 Uncaught TypeError: Cannot read property 'DDP' of undefined

livedata.js:22 Uncaught TypeError: Cannot read property 'DDP' of undefined

observe-sequence.js:24 Uncaught TypeError: Cannot read property 'LocalCollection' of undefined

blaze.js:28 Uncaught TypeError: Cannot read property 'ObserveSequence' of undefined

ui.js:22 Uncaught TypeError: Cannot read property 'Blaze' of undefined

templating.js:23 Uncaught TypeError: Cannot read property 'Blaze' of undefined

spacebars.js:25 Uncaught TypeError: Cannot read property 'Blaze' of undefined

global-imports.js:9 Uncaught TypeError: Cannot read property 'DDP' of undefined

template.test.js:2 Uncaught ReferenceError: Template is not defined

test.js:5 Uncaught ReferenceError: Template is not defined

此处test.js:5点:

(function(){if (Meteor.isClient) {
  // counter starts at 0
  Session.setDefault('counter', 0);

  Template.hello.helpers({ // <-error here
    counter: function () {
      return Session.get('counter');
    }
  });

我不明白为什么会导致错误。

.html读取:

<template name="hello">
  <button>Click Me</button>
  <p>You've pressed the button {{counter}} times.</p>
</template>

看起来很好,但也许我错过了什么。


更新:

到目前为止我尝试过:

我跑了rm -rf .meteor然后跑了meteor rebuild我得到了:

this is your first time using Meteor! Installing a Meteor distribution in your home directory.
######################################################################## 100.0%
Packages rebuilt.

听起来不错,所以我跑了meteor run

=> Started proxy.                             
=> Started MongoDB.                           
=> Started your app.                          

=> App running at: http://localhost:3000/

仍然有同样的错误。实际上看起来很有效!

0 个答案:

没有答案