Need to add Jquery js in theme-app extension code

Hello,

I’m working on theme-app-extension implementation, and I’m using app block to add my functionality, but for that, I need to add our jquery.min.js file which is compatible with our plugin functionality, but when I’m adding jquery.min.js , I’ve added js in-app block code and this js file is available there but still facing an error.

Please check the above image.

Thanks in advance.

Hi,

You are looking for jQuery.noConflict(). For example, when loading your jquery that your plugin is using do something like this:


And update your plugin to use jqueryXXXX variable and not the default $ or jquery

Hi @jazz-jay

Now I’m getting another error. “Uncaught ReferenceError: $ is not defined” because of the below code.

Hi,

That was just an example, you need to adapt the example that I have given to your needs plus you need to modify the plugin you are using for it to work well.

If you need assistance, pm me.