Meteor在以promise_server.js错误开始的服务器上崩溃
我在Meteor 1.8.0中看到了这一点,不知道它是否在早期版本中。我刚刚做了一些代码更改,当我运行meteor时,服务器立即崩溃,出现以下问题:Meteor在以promise_server.js错误开始的服务器上崩溃,meteor,Meteor,我在Meteor 1.8.0中看到了这一点,不知道它是否在早期版本中。我刚刚做了一些代码更改,当我运行meteor时,服务器立即崩溃,出现以下问题: 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;
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
我确信这是我在代码中做的事情,但是消息没有给我足够的信息继续下去。有人知道这是什么吗?哇。好的,我发现了问题。这个逗号应该是scss文件中的分号。 请看下面的红色圆圈。这种无害的打字错误会导致上述错误
您可以在将来使用css linter来防止这种情况。谢谢您,我从来没有想到scss错误会抛出这种无法跟踪的错误!我正在使用sass lint,但它没有发现导入路径错误。