-1

After Minification my Jquery Stops Working and Gives Error

JSON.parse: unexpected character at line 1 column 1 of the JSON data

If I Remove Minification My Scrips Works Fine..

sfrutig
  • 277
  • 2
  • 14
Basharat Ali
  • 124
  • 4
  • 17

2 Answers2

2

Issue Solved: In my case it was the version issue between Jquery ,jQuery.Validation and jquery.unobtrusive.what i did i simply updated the files and now its working .thanks for everyone's help

Basharat Ali
  • 124
  • 4
  • 17
0

you should put 'debugger;' instruction to the start of js execution and then continue step by step (firefox/chrome). when you find the error, you must be able to tell whether it's a minification error or yours.

Emre Türkiş
  • 992
  • 9
  • 23