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

Unexpected token (SEMI, ';') at... #78

Open
redyyu opened this issue Jul 9, 2015 · 5 comments
Open

Unexpected token (SEMI, ';') at... #78

redyyu opened this issue Jul 9, 2015 · 5 comments

Comments

@redyyu
Copy link

redyyu commented Jul 9, 2015

I had same issus

screen shot 2015-07-10 at 5 57 59 am

the file is a angularjs file upload's lib. and it's work fine when using Nodejs's minify (grunt plugin).

I believe it is slimit's bug.

@redyyu
Copy link
Author

redyyu commented Jul 9, 2015

sorry it's must be happened when minify angular-material.js another lib I shouldn't modify too.

screen shot 2015-07-10 at 6 19 59 am

@ghost
Copy link

ghost commented Jul 26, 2017

I'm getting the same error with another js library and I have no idea how to fix it. There is no semicolon in the relevant code portion:

SyntaxError: Unexpected token (SEMI, ';') at 40874:1412223 between LexToken(LINE_TERMINATOR,'\n',40873,1412210) and LexToken(NEW,'new',40874,1412223)
            old: new ig.RGBColor(),
            new: new ig.RGBColor()
        },
borderColor: {

@metatoaster
Copy link

The cause is due to the exact same issue already reported as #52, #59, #81, and #90.

@ghost
Copy link

ghost commented Sep 22, 2017

Ah. I see.

@metatoaster
Copy link

@22459 if you are still working on this problem and still want to keep using Python tools, I have forked slimit and rebuilt it as calmjs.parse, with a CLI utility called crimp which is built on top of that.

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

2 participants