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

Error with esprima.js #150

Closed
Sheraff opened this issue Jun 6, 2015 · 1 comment

Comments

@Sheraff
Copy link

commented Jun 6, 2015

Some error I'm getting when simply running standard-format in a folder.

/usr/local/lib/node_modules/standard-format/node_modules/esformatter/node_modules/rocambole/node_modules/esprima/esprima.js:5283
            throw e;
                  ^
Error: Line 10: Unexpected token else
    at createError (/usr/local/lib/node_modules/standard-format/node_modules/esformatter/node_modules/rocambole/node_modules/esprima/esprima.js:2306:21)
    at unexpectedTokenError (/usr/local/lib/node_modules/standard-format/node_modules/esformatter/node_modules/rocambole/node_modules/esprima/esprima.js:2381:13)
    at throwUnexpectedToken (/usr/local/lib/node_modules/standard-format/node_modules/esformatter/node_modules/rocambole/node_modules/esprima/esprima.js:2386:15)
    at consumeSemicolon (/usr/local/lib/node_modules/standard-format/node_modules/esformatter/node_modules/rocambole/node_modules/esprima/esprima.js:2501:13)
    at parseReturnStatement (/usr/local/lib/node_modules/standard-format/node_modules/esformatter/node_modules/rocambole/node_modules/esprima/esprima.js:4175:17)
    at parseStatement (/usr/local/lib/node_modules/standard-format/node_modules/esformatter/node_modules/rocambole/node_modules/esprima/esprima.js:4408:24)
    at parseIfStatement (/usr/local/lib/node_modules/standard-format/node_modules/esformatter/node_modules/rocambole/node_modules/esprima/esprima.js:3907:22)
    at parseStatement (/usr/local/lib/node_modules/standard-format/node_modules/esformatter/node_modules/rocambole/node_modules/esprima/esprima.js:4406:24)
    at parseStatementListItem (/usr/local/lib/node_modules/standard-format/node_modules/esformatter/node_modules/rocambole/node_modules/esprima/esprima.js:3716:16)
    at parseFunctionSourceElements (/usr/local/lib/node_modules/standard-format/node_modules/esformatter/node_modules/rocambole/node_modules/esprima/esprima.js:4498:23)
@feross

This comment has been minimized.

Copy link
Member

commented Jun 6, 2015

Can you file this on the standard-format repo? https://github.com/maxogden/standard-format

Also, please share the contents of the file that it's failing in, since that's probably relevant.

@feross feross closed this Jun 6, 2015

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.