Skip to content

systray failed to start: Cannot read properties of undefined (reading 'items') #10

@UndarkAido

Description

@UndarkAido

My project is just the example except that I had to make to constructor new SysTray.default

systray failed to start: Cannot read properties of undefined (reading 'items')
-snip-\node_modules\systray2\index.js:179
    if (item.items != null) {
             ^

TypeError: Cannot read properties of undefined (reading 'items')
    at addInternalId (C-snip-\node_modules\systray2\index.js:179:14)      
    at -snip-\node_modules\systray2\index.js:301:87
    at Array.forEach (<anonymous>)
    at SysTray.<anonymous> (-snip-\node_modules\systray2\index.js:301:57)
    at step (-snip-\node_modules\systray2\index.js:52:23)
    at Object.next (-snip-\node_modules\systray2\index.js:33:53)
    at -snip-\node_modules\systray2\index.js:27:71
    at new Promise (<anonymous>)
    at __awaiter (-snip-\node_modules\systray2\index.js:23:12)
    at C-snip-\node_modules\systray2\index.js:285:99

Process finished with exit code 1
{
  "name": "wallpapergarden-client",
  "main": "main.js",
  "type": "module",
  "scripts": {
    "start": "node ."
  },
  "dependencies": {
    "systray2": "^2.1.4"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions