How to fix «Uncaught TypeError: jQuery(...).slick is not a function»?

02

Step 1.

A third-party design theme used an absent slick jQuery plugin in my case.
I have added it as a stub at the top of the problem script:

jQuery.fn.slick = jQuery.fn.slick || function() {};

Step 2.

Then, I redeployed the Magento’s static content:

rm -rf pub/static/* 
bin/magento setup:static-content:deploy