服务器上的流星崩溃始于promise_server.js错误

时间:2018-11-19 22:08:24

标签: meteor

我在Meteor 1.8.0中看到了这一点,不知道它是否在早期版本中。我刚刚进行了一些代码更改,当我meteor run时,服务器立即崩溃,原因如下:

C:\Users\holmesa\AppData\Local\.meteor\packages\meteor-tool\1.8.0\mt-os.windows.x86_64\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:218
      throw error;
      ^
undefined
 => awaited here:
    at Promise.await (C:\Users\holmesa\AppData\Local\.meteor\packages\meteor-tool\1.8.0\mt-os.windows.x86_64\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:60:12)
    at JsOutputResource.finalize (C:\tools\isobuild\compiler-plugin.js:891:7)
    at JsOutputResource.hasPendingErrors (C:\tools\isobuild\compiler-plugin.js:918:10)
    at JsOutputResource.reportPendingErrors (C:\tools\isobuild\compiler-plugin.js:923:14)
    at ImportScanner._scanFile (C:\tools\isobuild\import-scanner.js:849:14)
    at each (C:\tools\isobuild\import-scanner.js:907:14)
    at _.each._.forEach (C:\Users\holmesa\AppData\Local\.meteor\packages\meteor-tool\1.8.0\mt-os.windows.x86_64\dev_bundle\lib\node_modules\underscore\underscore.js:87:22)
    at ImportScanner._scanFile (C:\tools\isobuild\import-scanner.js:871:5)
    at each (C:\tools\isobuild\import-scanner.js:907:14)
    at _.each._.forEach (C:\Users\holmesa\AppData\Local\.meteor\packages\meteor-tool\1.8.0\mt-os.windows.x86_64\dev_bundle\lib\node_modules\underscore\underscore.js:87:22)    at ImportScanner._scanFile (C:\tools\isobuild\import-scanner.js:871:5)
at outputFiles.forEach.file (C:\tools\isobuild\import-scanner.js:529:14)
at Array.forEach (<anonymous>)
at ImportScanner.scanImports (C:\tools\isobuild\import-scanner.js:527:22)
at sourceBatches.forEach.batch (C:\tools\isobuild\compiler-plugin.js:1287:17)
at Array.forEach (<anonymous>)
at Function.computeJsOutputFilesMap (C:\tools\isobuild\compiler-plugin.js:1255:19)
at ClientTarget._emitResources (C:\tools\isobuild\bundler.js:1114:8)
at buildmessage.enterJob (C:\tools\isobuild\bundler.js:841:12)
at C:\tools\utils\buildmessage.js:359:18
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:352:34
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:350:23
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)
at Object.enterJob (C:\tools\utils\buildmessage.js:324:26)
at ClientTarget.make (C:\tools\isobuild\bundler.js:829:18)
at C:\tools\isobuild\bundler.js:3115:14
at webArchs.forEach.arch (C:\tools\isobuild\bundler.js:3266:25)
at Array.forEach (<anonymous>)
at C:\tools\isobuild\bundler.js:3220:14
at C:\tools\utils\buildmessage.js:271:13
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:264:29
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:262:18
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:253:23
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)
at Object.capture (C:\tools\utils\buildmessage.js:252:19)
at bundle (C:\tools\isobuild\bundler.js:3096:31)
at files.withCache (C:\tools\isobuild\bundler.js:3041:32)
at Object.withCache (C:\tools\fs\files.js:1712:12)
at Object.bundle (C:\tools\isobuild\bundler.js:3041:16)
at Profile.run (C:\tools\runners\run-app.js:569:24)
at Function.run (C:\tools\tool-env\profile.js:490:12)
at bundleApp (C:\tools\runners\run-app.js:568:34)
at AppRunner._runOnce (C:\tools\runners\run-app.js:610:35)
at AppRunner._fiber (C:\tools\runners\run-app.js:908:28)
at C:\tools\runners\run-app.js:398:12

我确定这只是我在代码中所做的,但是消息并没有给我足够的帮助。有人知道这是什么吗?

1 个答案:

答案 0 :(得分:0)

哇。好的,我发现了问题。逗号应该是scss文件中的分号。 请参阅下面的红色圆圈。这种无害的错字会导致上述错误。

enter image description here