Create a free account to get access to additional free training videos. Enjoy this free video from CraftQuest! Create a free account to get access to additional free training videos. Join the Community

Modernizing a Craft 3 Website

Redemption and Resolution on the JavaScript Package Issues

In this episode he manages to figure out why the Slick and Slick Lightbox JavaScript wasn't working.

Andrew con­tin­ues his work on the mod­er­in­za­tion project. 

In this episode he man­ages to fig­ure out why the Slick and Slick Light­box JavaScript wasn’t working.

The issue end­ed up being a few dif­fer­ent issues all at once:

  • leav­ing the old script tags in the Twig code (so they were loaded twice), 
  • import­ing the wrong mod­ule (slick vs. slick-carousel), and
  • final­ly need­ing to require() the old com­mon­js mod­ules rather than import them via ESM syntax.

Modernizing a Craft 3 Website is made up of the following videos: