Ecmascript error


#1

Has anyone seen this error? Having trouble getting to the root of it.

   While processing files with ecmascript (for target web.browser):
   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)
   
   
   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)


#2

This is an issue with your package.json file. My guess from the rather cryptic error is that you’ve moved or deleted a key recently and there is a trailing common that the json parser doesn’t like.