JQuery-UI causes an error in 2.12.8
See original GitHub issueWhat is the problem?
If the jquery-ui library is specified in a script’s @require block, the script crashes with an error in Chrome.
Note that this was not the case in version 2.12.7. This also does not happen if this library is used outside of a userscript, nor is it present in the Firefox version.
Here is a sample script, used to reliably reproduce this issue:
// ==UserScript==
// @name JQuery-UI Test
// @namespace test.jquery-ui
// @version 1.0
// @match *://*/*
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js
// @grant GM.info
// ==/UserScript==
console.log(GM.info);
How to reproduce it?
- Run the script above
- Observe the error in the console
What is the expected result?
The script runs normally.
What is the actual result?
The following error is produced:
JQuery-UI Test.user.js:28 RangeError: Maximum call stack size exceeded
at Set.V (injected-web.js:1)
at Array.filter (<anonymous>)
at Object.ownKeys (injected-web.js:1)
at Function.t.widget.extend (JQuery-UI Test.user.js:9)
at Function.t.widget.extend (JQuery-UI Test.user.js:9)
at Function.t.widget.extend (JQuery-UI Test.user.js:9)
at Function.t.widget.extend (JQuery-UI Test.user.js:9)
at Function.t.widget.extend (JQuery-UI Test.user.js:9)
at Function.t.widget.extend (JQuery-UI Test.user.js:9)
at Function.t.widget.extend (JQuery-UI Test.user.js:9)
Environment
- Browser: Google Chrome
- Browser version: 87.0.4280.88 (latest)
- Violentmonkey version: 2.12.8
- OS: Windows
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
jquery-ui is showing uncaught type errors - Stack Overflow
I have an issues using Selectmenu in jquery-ui everytime I tried to click on the drop it shows me this error in the...
Read more >jQuery UI 1.12 Upgrade Guide
jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.
Read more >jQuery UI
jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.
Read more >9983 (autocomplete focuses on category, cause js error)
The autocomplete focusses on categories, which causes a not working "autoFocus" and errors when you navigate with up and down arrows.
Read more >Custom Query - jQuery UI
Ticket Summary Owner Type Priority Milestone Comp...
#2248 Bug in ui.slider.js causes IE to fail paul bug major 1.5 ui.core
#2256 Sortable options 'update' and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This is the same problem we’ve fixed for Firefox in #861. Apparently Chrome changed its behavior so we’ll apply the fix for Chrome too.
The stores are slow. Meanwhile you can install the new release as an unpacked extension in dev mode. When the store is updated you can remove the extension and reinstall it from the store. Don’t forget to back up your data.