gpt4 book ai didi

javascript - Meteor 在 promise_server.js 中抛出错误?

转载 作者:可可西里 更新时间:2023-11-01 09:14:59 24 4
gpt4 key购买 nike

我是 Meteor 的新手,第一次遇到 babel 函数名的问题......但现在它在 promise_server.js 类型错误中抛出异常

本地主机 3000 在 chrome 中被阻止:ERR_CONNECTION_REFUSED

改变 meteor 版本没有帮助。希望你能帮助我:D

版本: meteor 1.3.3.1

赢 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

最佳答案

连接被拒绝消息意味着服务器不可访问。这是正确的,因为服务器因错误的函数调用而崩溃:无法调用未定义的方法“displayName”。

可能与这个问题类似? https://github.com/flemay/less-autoprefixer/issues/4

在引用的问题中,通过删除“less”包解决了这个问题

关于javascript - Meteor 在 promise_server.js 中抛出错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37960310/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com