Welcome to Shopify Community.
Thanks for sharing your question with our network. At first glance, it appears that a variable is being referenced via your code that does not exist. There are some other potential reasons that cause this, depending on where a variable is called in the code before it is defined.
I found this helpful third-party blog post that walks you through these commons reasons, along with addressing some fixes that I encourage you to review.
While I'm not familiar with the variable you created, it almost sounds like it is related to a pop up form or list. If you're using an app that could have injected this code, then make sure to consult with the App Developers directly for their expert advice on resolving it.
I think it happens on a product page or other where the content is edited by the WSYIWYG editor? I had this problem with the Chrome extension for page translation. This extension added a lot of unnecessary HTML and JS code to the product description. I disabled the extension and the problem went away. Try to test this idea.
Thank you for joining this thread and sharing your perspective, @Mastm111. I didn't consider an extension causing this issue, which actually could explain a lot. Thanks for that tidbit of information, I'm sure other users will find this helpful.
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...By Trevor Sep 20, 2023
Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...By Skye Sep 15, 2023