uicrooks / shopify-theme-lab

Shopify theme development environment using Liquid, Vue and Tailwind CSS. Built on top of Shopify CLI 🧪
https://uicrooks.github.io/shopify-theme-lab-docs/
MIT License
727 stars 128 forks source link

[Question]: Installing add-ons #119

Closed ammyno closed 2 years ago

ammyno commented 2 years ago

Operating system

Windows 10

Node.js version

14.0.0

Shopify CLI version

2.0.0

Browsers

No response

Version

3 (Legacy)

Modifications

No response

Details

Hello, i've installed an add-on "Judgme App" to be more exact but everytime I enable it I get an javascript error in the browser "Uncaught SyntaxError: 59" .

I'm assuming this is because the add-on is installing a script inside my product.liquid page.

Is there anyway to make this work ? ( I only have this problem after I build the project , on dev is working fine )

Notice

sergejcodes commented 2 years ago

It seems this plugin has a manual installation method, where you can copy the render snippets {% render '...' %}

You can try to do something like this where you check for the product template and insert the snippet outside of the <div id="app"></div> or create a specific snippet template for the product page.

ammyno commented 2 years ago

Figure it out

You need to replace some