简体   繁体   English

Meteor在promise_server.js中抛出错误?

[英]Meteor throws an error in promise_server.js?

I am new to Meteor and first had some problems with babel function name ... but now it throws an exepction in promise_server.js Type Error 我是Meteor的新手,并且首先遇到了babel函数名称的一些问题......但是现在它在promise_server.js中引发了一个exsection类型错误

localhost 3000 is blocked in chrome: ERR_CONNECTION_REFUSED localhost 3000在chrome中被阻止:ERR_CONNECTION_REFUSED

changing meteor version doesnt help. 改变流星版本没有帮助。 Hope you can help me :D 希望你能帮助我:D

Version: Meteor 1.3.3.1 版本:流星1.3.3.1

Win 10 赢10

=> Started proxy.
=> Started MongoDB.
=> Babel active on file extensions: es6.js, es6, jsx

C:\Users\Admin\AppData\Local\.meteor\packages\meteor-tool\1.3.3_1\mt-os.windows.x86_32\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:165
  throw error;
        ^
TypeError: Cannot call method 'displayName' of undefined
at SourceProcessorSet.addLegacyHandler (C:\tools\isobuild\build-plugin.js:142:64)
at C:\tools\isobuild\build-plugin.js:172:12
at Function._.each._.forEach (C:\Users\Admin\AppData\Local\.meteor\packages\meteor-tool\1.3.3_1\mt-os.windows.x86_32\dev_bundle\lib\node_modules\underscore\underscore.js:87:22)
at SourceProcessorSet.merge (C:\tools\isobuild\build-plugin.js:170:7)
at C:\tools\isobuild\compiler.js:376:26
at Array.forEach (native)
at C:\tools\isobuild\compiler.js:372:26
at C:\tools\utils\buildmessage.js:359:18
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:352:34
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:350:23
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at Object.enterJob (C:\tools\utils\buildmessage.js:324:26)
at C:\tools\isobuild\compiler.js:368:16
at C:\tools\isobuild\compiler.js:176:26
at Array.forEach (native)
at Function._.each._.forEach (C:\Users\Admin\AppData\Local\.meteor\packages\meteor-tool\1.3.3_1\mt-os.windows.x86_32\dev_bundle\lib\node_modules\underscore\underscore.js:79:11)
at Object.compile (C:\tools\isobuild\compiler.js:171:5)
at C:\tools\isobuild\bundler.js:2571:24
at C:\tools\utils\buildmessage.js:271:13
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:264:29
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:262:18
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:253:23
at [object Object].withValue (C:\tools\utils\fiber-helpers.js:89:14)
at Object.capture (C:\tools\utils\buildmessage.js:252:19)
at Object.exports.bundle (C:\tools\isobuild\bundler.js:2514:31)
at C:\tools\runners\run-app.js:591:36
at Function.run (C:\tools\tool-env\profile.js:489:12)
at bundleApp (C:\tools\runners\run-app.js:581:34)
at AppRunner._runOnce (C:\tools\runners\run-app.js:634:35)
at AppRunner._fiber (C:\tools\runners\run-app.js:887:28)
at C:\tools\runners\run-app.js:411:12

The connection refused message means that the server is unreachable. 连接被拒绝消息表示服务器无法访问。 This is correct since the server has crashed due to an incorrect function call: Cannot call method 'displayName' of undefined. 这是正确的,因为服务器因函数调用不正确而崩溃:无法调用未定义的方法'displayName'。

Maybe similar to this issue? 也许类似于这个问题? https://github.com/flemay/less-autoprefixer/issues/4 https://github.com/flemay/less-autoprefixer/issues/4

In the referenced issue it is resolved by removing the "less" package 在引用的问题中,通过删除“less”包来解决它

A similar issue arise when you are running meteor to an android device. 当您将meteor运行到Android设备时会出现类似的问题。 In my case the problem was caused due the app was installed in the device and it had been installed using Google Play, so maybe meteor could't overwrite it. 在我的情况下,问题是由于应用程序已安装在设备中并且已使用Google Play安装,因此也许meteor无法覆盖它。

The problem was solved uninstalling the app previously installed via Google Play. 卸载之前通过Google Play安装的应用程序解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM