Skip to main content
All CollectionsIntegrations
How to solve lightJsExclude is undefined in your Shopify store
How to solve lightJsExclude is undefined in your Shopify store

This article also solves the avadaLightJsExclude is undefined problem

Kevin Basset avatar
Written by Kevin Basset
Updated this week

A very unusual issue appears in some Shopify stores. If you've ever installed the Avada app in your store, there may be leftover code with a JavaScript error. And it will break all your other plugins (!) until you fix it.

Looking for a neat app that works great and that adds neat functionality into your Shopify store? Try Progressier.

Here is the culprit:

This line of code is supposed to initialize some of your apps differently than others for the Avada app. However, the lightJsExclude variable is undefined when it's used.

The code stops when it encounters that line of code, and it de facto prevents all your other apps from ever initializing.

How to fix lightJsExclude is not defined

Fortunately, fixing this issue is actually very simple.

  1. Go to your Shopify store dashboard

  2. Under Sales channels in the menu, click on Online store and then Themes.

  3. Click on the [...] button and select Edit code.

  4. Open your theme.liquid file

  5. Now look for the Avada code snippet in the head of the code, delete it, and hit Save.

  6. You're done!

Did this answer your question?