Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks with "SyntaxError: Unexpected token, expected "}"" #13

Open
Vadorequest opened this issue Jan 20, 2021 · 0 comments
Open

Breaks with "SyntaxError: Unexpected token, expected "}"" #13

Vadorequest opened this issue Jan 20, 2021 · 0 comments

Comments

@Vadorequest
Copy link

One of my file seems to break the Babel parser, but I have no idea which one.

It gives the position but not the file and I couldn't figure it out due to the size of my project.

I suggest the filename to be displayed when such error occurs.

/Users/vadorequest/dev/TFP-v4/node_modules/relative-to-alias/node_modules/@babel/parser/lib/index.js:7116
    if ((_jsx3 = jsx) == null ? void 0 : _jsx3.thrown) throw jsx.error;
                                                       ^

SyntaxError: Unexpected token, expected "}" (26:105)
    at Object._raise (/Users/vadorequest/dev/TFP-v4/node_modules/relative-to-alias/node_modules/@babel/parser/lib/index.js:748:17)
    at Object.raiseWithData (/Users/vadorequest/dev/TFP-v4/node_modules/relative-to-alias/node_modules/@babel/parser/lib/index.js:741:17)
    at Object.raise (/Users/vadorequest/dev/TFP-v4/node_modules/relative-to-alias/node_modules/@babel/parser/lib/index.js:735:17)
    at Object.unexpected (/Users/vadorequest/dev/TFP-v4/node_modules/relative-to-alias/node_modules/@babel/parser/lib/index.js:9101:16)
    at Object.expect (/Users/vadorequest/dev/TFP-v4/node_modules/relative-to-alias/node_modules/@babel/parser/lib/index.js:9087:28)
    at Object.jsxParseExpressionContainer (/Users/vadorequest/dev/TFP-v4/node_modules/relative-to-alias/node_modules/@babel/parser/lib/index.js:4617:10)
    at Object.jsxParseElementAt (/Users/vadorequest/dev/TFP-v4/node_modules/relative-to-alias/node_modules/@babel/parser/lib/index.js:4708:36)
    at Object.jsxParseElement (/Users/vadorequest/dev/TFP-v4/node_modules/relative-to-alias/node_modules/@babel/parser/lib/index.js:4751:17)
    at Object.parseExprAtom (/Users/vadorequest/dev/TFP-v4/node_modules/relative-to-alias/node_modules/@babel/parser/lib/index.js:4758:19)
    at Object.parseExprSubscripts (/Users/vadorequest/dev/TFP-v4/node_modules/relative-to-alias/node_modules/@babel/parser/lib/index.js:10150:23) {
  loc: Position { line: 26, column: 105 },
  pos: 1464
}
error Command failed with exit code 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant