slimit icon indicating copy to clipboard operation
slimit copied to clipboard

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

Open redyyu opened this issue 9 years ago • 5 comments

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 avatar Jul 09 '15 22:07 redyyu

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

redyyu avatar Jul 09 '15 22:07 redyyu

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: {

ghost avatar Jul 26 '17 12:07 ghost

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

metatoaster avatar Sep 19 '17 08:09 metatoaster

Ah. I see.

ghost avatar Sep 22 '17 18:09 ghost

@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.

metatoaster avatar Sep 28 '17 03:09 metatoaster