question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JQuery-UI causes an error in 2.12.8

See original GitHub issue

What 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?

  1. Run the script above
  2. 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tophfcommented, Dec 17, 2020

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.

1reaction
tophfcommented, Dec 20, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found