Does Vue 3.4.x hijack the global $ from JQuery? #11280
Replies: 2 comments 4 replies
-
We did not do anything like that, at least not intentional. And if it were a bug in Vue that affected jquery in such a general way, you would also likely see a lot of issues in our tracker about that if that were the case, but there are none. So it's very likely that this is something specific to your project setup and I would need to understand how this problem manifests in your project exactly. |
Beta Was this translation helpful? Give feedback.
-
We've swapped the minifier to Terser and used this config to work around the issue which seems to be with Vite and the latest version of Vue.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, we are running an old legacy Rails app which contains JQuery and Vue code.
Somewhere between Vue 3.2.37 and Vue 3.4.x, a change seems to have been introduced that made Vue hijack the global JQuery $ (dollar sign) variable. In other words, our JS code breaks under Vue 3.4.x but runs fine under Vue 3.2.37 (and possibly some later versions too).
Does anyone have any information on that? I cannot find anything in the release notes.
I'd be happy to dig a bit deeper and maybe set up a reproducible example if required. That said, maybe someone can clear this up for us. It was a tricky one to debug.
Beta Was this translation helpful? Give feedback.
All reactions