How to resolve dependency of JQuery #380
Unanswered
arslandev123
asked this question in
1. Help
Replies: 1 comment 4 replies
-
I guess searchanise provides a script without jQuery dependency? Try using it instead. If not, then try enabling built-in jquery in searchanise widget. I see that they provide ability to load jQuery automatically with noConflict mode: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
we have some module template .phtml that have a dependency of JQuery and it is coming on all the pages.
Here is the code of .phtml
** breeze_default.xml **
Removing the
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
result in below errorinit.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'event')
whereas 'event' points to the line of code
if (a.$.event.special.touchstart = {
here is the complete code - https://searchserverapi1.com/widgets/v1.0/init.jsMy Question
How to resolve the JQuery dependency without directly using of
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
or what is the standard way to resolve this issue.Beta Was this translation helpful? Give feedback.
All reactions