-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Uncaught SyntaxError: Unexpected token ) #920
Comments
@SLaks might want to be aware of this for Unroll-Me. Same situation as the |
At Unroll.me, we had a similar issue that turned out to be a bug in UglifyJS (the minifier used by Racer).
|
sure enough, pinning 2.3.1 (previous Uglify version) fixed the issue. As always, you are my hero @SLaks! |
Uglify v2.3.2 transforms (function(){})() to !function(){}() This breaks the slice() call. Fixes HabitRPG/habitica#920
Uglify v2.3.2 transforms (function(){})() to !function(){}() This breaks the slice() call. Fixes HabitRPG/habitica#920
BTW, you can avoid this kind of issue in the future by using You can then use |
Great. I think I'll check into doing that from now on, getting our Chef On Sunday, May 12, 2013, SLaks wrote:
|
and users can't interact with the page at all. only happens when
process.env.NODE_ENV=='production'
, so both sites are set todevelopment
right now (obviously not optimal). Looks like some mini / concat issue - my hunch was Browserify, but again that's frozen at 1.17.3. I've narrowed it down tostore.query.expose...
that causes it - any exposed paths, any arguments, any function body. This happens even in minimal Derby example apps.Something in derby/node_modules or racer/node_modules as far as I can tell. I did
git bisect
on habit's codebase, as well as Unroll-Me/derby & SLaks/racer , but didn't find anything there, so I assume nested module somewhereThe text was updated successfully, but these errors were encountered: