This is the error I receive while checking my application.js from public/assets/js in an online JavaScript Minifier:
Parse error: Unexpected token: punc (})
Line 22315, column 33
22314: url: "/products/per_amount",
22315: data: {id: quantity, product},
22316: dataType: "json",
That simply looks like this:
$.ajax({
url: "/products/per_amount",
data: {id: quantity, product},
dataType: "json",
type: "GET",
...
this is the same error as this but everywhere I looked said it was either fixed or the solution I tried did not work.