Skip to content

[BUG] (destructured parameter) is undefined #2388

@mga316

Description

@mga316

Sequence of actions:

  1. Install extension
  2. With an empty list of scripts, create and save a new script
  3. Delete new script
  4. Refresh Installed Scripts

Problem:

Red-on-black error message at bottom of screen that won't go away until you disable and re-enable the extension:

(destructured parameter) is undefined
Xi/<@background/index.js:1:142959
Xi@background/index.js:1:142955
Ji@background/index.js:1:142541
$u@background/index.js:1:194105
Su@background/index.js:1:194052
b@common-ui.js:1:92060
Mu@options/index.js:1:91843
ju@options/index.js:1:91765
4555@options/index.js:1:92080
F@options/index.js:1:94973
$<@options/index.js:1:96538
F.O@options/index.js:1:95236
@options/index.js:1:96550
@options/index.js:1:96556

Expected result:

No error message.

Devtools console contents:

Firefox

Uncaught (in promise) TypeError: (destructured parameter) is undefined
    Xi moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/background/index.js:1
    Xi moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/background/index.js:1
    Ki moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/background/index.js:1
    $u moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/background/index.js:1
    Su moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/background/index.js:1
    b moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/common-ui.js:1
    Mu moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/options/index.js:1
    ju moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/options/index.js:1
    4555 moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/options/index.js:1
    F moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/options/index.js:1
    $< moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/options/index.js:1
    O moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/options/index.js:1
    <anonymous> moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/options/index.js:1
    <anonymous> moz-extension://7475dd60-d5c9-4547-9ac6-101e07a84023/options/index.js:1
index.js:1:142865

Chromium

Navigated to chrome-extension://hfgafcmchcilffdkcldcbhpekmeijhoc/options/index.html
chrome-extension://h…ckground/index.js:1 Uncaught (in promise) TypeError: Cannot destructure property 'meta' of 'undefined' as it is undefined.
    at chrome-extension://h…d/index.js:1:142966
    at Array.map (<anonymous>)
    at Xi (chrome-extension://h…d/index.js:1:142955)
    at Ji (chrome-extension://h…d/index.js:1:142541)
    at $u (chrome-extension://h…d/index.js:1:194105)
    at Su (chrome-extension://h…d/index.js:1:194052)
    at b (common-ui.js:1:92060)
    at Mu (index.js:1:91843)
    at ju (index.js:1:91765)
    at 4555 (index.js:1:92080)
(anonymous) @ chrome-extension://h…ckground/index.js:1
Xi @ chrome-extension://h…ckground/index.js:1
Ji @ chrome-extension://h…ckground/index.js:1
$u @ chrome-extension://h…ckground/index.js:1
Su @ chrome-extension://h…ckground/index.js:1
b @ common-ui.js:1
Mu @ index.js:1
ju @ index.js:1
4555 @ index.js:1
F @ index.js:1
(anonymous) @ index.js:1
F.O @ index.js:1
(anonymous) @ index.js:1
(anonymous) @ index.js:1
Promise.catch (async)
ju @ index.js:1
4555 @ index.js:1
F @ index.js:1
(anonymous) @ index.js:1
F.O @ index.js:1
(anonymous) @ index.js:1
(anonymous) @ index.js:1

Environment:

  • OS: Windows 10, Windows 7
  • Browser: Firefox 145.0.1, Firefox ESR 115.17.0, Chromium 103
  • Violentmonkey Version: BETA 2.31.2b
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions