Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks jQuery for versions >=0.3.2 #39

Open
fynsta opened this issue Jun 20, 2024 · 4 comments
Open

Breaks jQuery for versions >=0.3.2 #39

fynsta opened this issue Jun 20, 2024 · 4 comments

Comments

@fynsta
Copy link

fynsta commented Jun 20, 2024

We use jQuery via the jquery-rails gem. Upgrading the debugbar to 0.3.2 just completely breaks the jQuery installation (via the debugbar_head helper where it loads the script).

With this issue:

$.fn // => undefined

And after commenting out = debugbar_head if Rails.env.development?

$.fn // => {jquery: '3.7.0', length: 0, toArray: ƒ, get: ƒ, pushStack: ƒ, …}

This happens no matter which file is required first.

@julienbourdeau
Copy link
Owner

I'm looking at the diff and I don't get how 0.3.1 could work but the later versions 🤔
63d99c6...6df7e2e

I'm assuming you don't get any error in the console and you ran assets:precompile.

@fynsta
Copy link
Author

fynsta commented Jul 17, 2024

Yes. I was looking through the same diff and could not figure it out. The same behaviour has been observed by other members of the team when switching back-and-forth between versions of this gem.

@erwin
Copy link

erwin commented Jul 23, 2024

I'm seeing this too when running on top of Solidus, which has jquery baked in for the /admin site...

@fynsta any tips if you were able to find a work around?

@julienbourdeau such a cool looking tool! awesome!

@fynsta
Copy link
Author

fynsta commented Jul 23, 2024

@erwin No sorry, we just rolled back to 0.3.1. and are running that one for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants