meteor compilation - error output doesn't show where is the error?

╄→гoц情女王★ 提交于 2019-12-25 07:21:34

问题


I am trying to run my meteor app, and get the following runtime error :

    While processing files with ecmascript (for target os.osx.x86_64):
   native: Unexpected token }
   at Object.parse (native)
   at BabelCompiler.BCp._inferFromPackageJson (packages/babel-compiler/babel-compiler.js:165:1)
   at BabelCompiler.BCp.inferExtraBabelOptions (packages/babel-compiler/babel-compiler.js:139:1)
   at BabelCompiler.BCp.processOneFileForTarget (packages/babel-compiler/babel-compiler.js:81:1)
   at BabelCompiler.<anonymous> (packages/babel-compiler/babel-compiler.js:21:1)
   at Array.forEach (native)
   at BabelCompiler.BCp.processFilesForTarget (packages/babel-compiler/babel-compiler.js:20:1)

I don't see which file is having an issue. Is there any option to have more information about the error ?


回答1:


It's not being super helpful, but it is telling you in line 2

   native: Unexpected token }

Which means you have an unbalanced brace - If you are using a modern editor like Atom or Sublime (or others), then it should be able to highlight that for you.

I know it doesn't tell you which file, but look at the file you edited most recently, or even use

git difftool 

to show you what has changed since your last commit




回答2:


Thanks to : https://github.com/meteor/meteor/issues/7259

I found There was an issue on my package.json file.

I don't really know which one : maybe a comma that shouldn't really be somewhere...



来源:https://stackoverflow.com/questions/40197713/meteor-compilation-error-output-doesnt-show-where-is-the-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!