Skip to content

Instantly share code, notes, and snippets.

/error.md Secret

Created Sep 13, 2015
Embed
What would you like to do?
result of Kamuela's code

For this code:

 () => return false;

This was the error:

/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/file/index.js:634
      throw err;
            ^
SyntaxError: [eval]: Unexpected token (1:7)
> 1 |  () => return false;
    |        ^
    at Parser.pp.raise (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/location.js:80:13)
    at Parser.pp.unexpected (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/parseutil.js:95:8)
    at Parser.pp.parseExprAtom (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:415:12)
    at Parser.parseExprAtom (/usr/lib/node_modules/babel/node_modules/babel-core/node_modules/acorn-jsx/inject.js:373:24)
    at Parser.pp.parseExprSubscripts (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:232:19)
    at Parser.pp.parseMaybeUnary (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:214:19)
    at Parser.pp.parseExprOps (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:170:19)
    at Parser.pp.parseMaybeConditional (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:153:19)
    at Parser.pp.parseMaybeAssign (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:121:19)
    at Parser.pp.parseFunctionBody (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:722:22)
    at Parser.parseFunctionBody (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/plugins/flow.js:615:20)
    at Parser.pp.parseArrowExpression (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:710:8)
    at Parser.pp.parseParenArrowList (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:515:15)
    at Parser.parseParenArrowList (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/plugins/flow.js:718:20)
    at Parser.pp.parseParenAndDistinguishExpression (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:479:19)
    at Parser.pp.parseExprAtom (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:372:19)
    at Parser.parseExprAtom (/usr/lib/node_modules/babel/node_modules/babel-core/node_modules/acorn-jsx/inject.js:373:24)
    at Parser.pp.parseExprSubscripts (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:232:19)
    at Parser.pp.parseMaybeUnary (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:214:19)
    at Parser.pp.parseExprOps (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:170:19)
    at Parser.pp.parseMaybeConditional (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:153:19)
    at Parser.pp.parseMaybeAssign (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:121:19)
    at Parser.pp.parseExpression (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/expression.js:96:19)
    at Parser.pp.parseStatement (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/statement.js:129:23)
    at Parser.parseStatement (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/plugins/flow.js:627:22)
    at Parser.pp.parseTopLevel (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/statement.js:30:21)
    at Object.parse (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/index.js:101:12)
    at Object.exports.default (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/helpers/parse.js:72:19)
    at File.parse (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/file/index.js:561:41)
    at File.parseCode (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/file/index.js:646:22)
    at /usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/pipeline.js:130:12
    at File.wrap (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/file/index.js:610:16)
    at Pipeline.transform (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/pipeline.js:128:17)
    at _eval (/usr/lib/node_modules/babel/bin/_babel-node:46:16)
    at Object.<anonymous> (/usr/lib/node_modules/babel/bin/_babel-node:74:16)
    at Module._compile (module.js:426:26)
    at Object.Module._extensions..js (module.js:444:10)
    at Module.load (module.js:351:32)
    at Function.Module._load (module.js:306:12)
    at Function.Module.runMain (module.js:467:10)
    at startup (node.js:117:18)
    at node.js:946:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.