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

Sucrase SyntaxError - (7:3) #815

Closed
nmcpmadmin opened this issue Sep 3, 2023 · 2 comments
Closed

Sucrase SyntaxError - (7:3) #815

nmcpmadmin opened this issue Sep 3, 2023 · 2 comments

Comments

@nmcpmadmin
Copy link

Just ran this for the first time and I'm getting these errors (possible typo in the source).
Is this a known problem and is it serious?

(Terminal)
SyntaxError: Unexpected token, expected "," (7:3)
at unexpected (/node_modules/sucrase/dist/parser/traverser/util.js:99:15)
at expect (
/node_modules/sucrase/dist/parser/traverser/util.js:86:5)
at parseExprList (/node_modules/sucrase/dist/parser/traverser/expression.js:973:20)
at parseExprAtom (
/node_modules/sucrase/dist/parser/traverser/expression.js:549:7)
at parseExprSubscripts (/node_modules/sucrase/dist/parser/traverser/expression.js:276:20)
at parseMaybeUnary (
/node_modules/sucrase/dist/parser/traverser/expression.js:257:20)
at parseExprOps (/node_modules/sucrase/dist/parser/traverser/expression.js:185:20)
at parseMaybeConditional (
/node_modules/sucrase/dist/parser/traverser/expression.js:157:20)
at baseParseMaybeAssign (/node_modules/sucrase/dist/parser/traverser/expression.js:142:20)
at tsParseMaybeAssignWithoutJSX (
/node_modules/sucrase/dist/parser/plugins/typescript.js:1580:45) {
pos: 137,
loc: Loc { line: 7, column: 3 }
}

@nmcpmadmin
Copy link
Author

Issue #616 - (May 2001) seems very similar to this.

@nmcpmadmin
Copy link
Author

This wasn't an issue with Sucrase. Please disregard. Involved Tailwind CSS and the simple error was in the tailwind config file.

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