Isuess with Slick Slider

When I add my Slick Slider custom setting it was working fein but now just stop working getting a console error saying Uncaught SyntaxError: Unexpected end of input but not explain where the error at just saying somewhere at the closing script tag.

Here Link: https://preview.webflow.com/preview/ireconcile-project?utm_source=ireconcile-project&preview=4addfb9596d01c90aaf0dc7d1800f05a

Published Url: https://ireconcile-project.webflow.io/

Share the published URL for this project. Custom code with JS does not render in the designer.

1 Like

Sorry, about that I didn’t know. Here the link → https://ireconcile-project.webflow.io/

No way to know if this solve your problem (No way to publish) . Anyway your syntax is wrong (missing closing tags for ready() function).

// A $( document ).ready() block.
$( document ).ready(function() {
    console.log( "ready!" );
});

So in your case - Add a second }); .

$(document).ready(function() {
  $(".slick-wrapper").slick({
    centerMode: true,
    centerPadding: "40px",
    slidesToShow: 8,
    prevArrow: $(".prev"),
    nextArrow: $(".next")
  });
});/*missing code in your project*/
2 Likes

Wow, I did not know lol sorry. but it fixed the problem

1 Like

Next time if you get error first:
google console → Copy paste the error to google and get ideas. Example:
https://stackoverflow.com/questions/3983088/javascript-error-uncaught-syntaxerror-unexpected-end-of-input

Next:
Use JS validator:
http://esprima.org/demo/validate.html

1 Like