mgonto / angularytics

The solution to tracking page views and events in a SPA with AngularJS
MIT License
630 stars 70 forks source link

Running `grunt` fails to build dist/angularytics.js #21

Open paolodm opened 10 years ago

paolodm commented 10 years ago

Upon running grunt, I get the following build failure:

Running "uglify:dist" (uglify) task
{ message: 'Unexpected token name «Object», expected punc «,»',
  line: 1,
  col: 8,
  pos: 8,
  stack: 'Error\n    at new JS_Parse_Error (/Users/paolo.delmundo/tmp/angularytics/node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/parse.js:196:18)\n    at js_error (/Users/paolo.delmundo/tmp/angularytics/node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/parse.js:204:11)\n    at croak (/Users/paolo.delmundo/tmp/angularytics/node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/parse.js:663:9)\n    at token_error (/Users/paolo.delmundo/tmp/angularytics/node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/parse.js:671:9)\n    at expect_token (/Users/paolo.delmundo/tmp/angularytics/node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/parse.js:684:9)\n    at expect (/Users/paolo.delmundo/tmp/angularytics/node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/parse.js:687:36)\n    at expr_list (/Users/paolo.delmundo/tmp/angularytics/node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/parse.js:1179:44)\n    at /Users/paolo.delmundo/tmp/angularytics/node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/parse.js:1194:23\n    at /Users/paolo.delmundo/tmp/angularytics/node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/parse.js:710:24\n    at expr_atom (/Users/paolo.delmundo/tmp/angularytics/node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/parse.js:1157:35)' }
>> Uglifying source "dist/angularytics.js" failed.

The dist/angularytics.js looks like this:

[Object object]