I have a AngularJS application, in which i use jspdf library. When i run dev version with grunt serve, everything is fine. But if i build the app using grunt build, using uglify, the minified version has this errors:
jsPDF PubSub Error Cannot read property 'annotations' of undefined TypeError: Cannot read property 'annotations' of undefined
jsPDF PubSub Error Cannot set property 'pdf' of undefined TypeError: Cannot set property 'pdf' of undefined
"grunt-contrib-uglify": "0.11.1"
I found the corresponding GitHub issue, but it doesn't help.
//if they get inlined they comment out the whole block - john Smith