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.

TypeError: Cannot destructure property 'task' of 'c' as it is null.

See original GitHub issue

Steps to Reproduce

I only noticed the error when returning to the app, so I’m not sure about the steps to reproduce. I believe that I had a timer running on an issue and clicked on “back to work”, “skip break”, or similar, to discard a Pomodoro timer notification.

Error Log (Desktop only)

No error log found at %USERPROFILE%/AppData/Roaming/superProductivity/logs/main.log

Console Output

No console entries found with log levels “warning” or “error” (after restarting the app).

Stacktrace

TypeError: Cannot destructure property 'task' of 'c' as it is null.
    at b._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:2107790)
    at b.__tryOrUnsub (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:956876)
    at b.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:956105)
    at T._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:955288)
    at T.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:955062)
    at v._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:975388)
    at v.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:955062)
    at O.next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:952809)
    at b._next (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:1716081)
    at b.__tryOrUnsub (file:///C:/Program%20Files/WindowsApps/53707johannesjo.SuperProductivity_7.8.0.0_x64__ch45amy23cdv6/app/resources/app.asar/dist/main.1e9942faffaf603d.js:1:956876)

Meta Info

META: SP7.8.0 Electron – en-US – Win32 – Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/7.8.0 Chrome/93.0.4577.82 Electron/14.1.1 Safari/537.36

Actions Before Error

1637568116332: [Idle] Set idle time (5) 
1637568117230: [Idle] Trigger Idle 
1637568121337: [Idle] Set idle time (5) 
1637568122231: [Idle] Trigger Idle 
1637568126343: [Idle] Set idle time (5) 
1637568127232: [Idle] Trigger Idle 
1637568131346: [Idle] Set idle time (5) 
1637568132232: [Idle] Trigger Idle 
1637568136352: [Idle] Set idle time (5) 
1637568137232: [Idle] Trigger Idle 
1637568141355: [Idle] Set idle time (5) 
1637568142232: [Idle] Trigger Idle 
1637568146360: [Idle] Set idle time (5) 
1637568147232: [Idle] Trigger Idle 
1637568151365: [Idle] Set idle time (5) 
1637568152234: [Idle] Trigger Idle 
1637568156371: [Idle] Set idle time (5) 
1637568157234: [Idle] Trigger Idle 
1637568161375: [Idle] Set idle time (5) 
1637568162233: [Idle] Trigger Idle 
1637568166379: [Idle] Set idle time (5) 
1637568167234: [Idle] Trigger Idle 
1637568171381: [Idle] Set idle time (5) 
1637568172234: [Idle] Trigger Idle 
1637568174383: [Idle] Set idle time (3) 
1637568174885: [Pomodoro] Finish Pomodoro Session 
1637568174886: [Task] Toggle start 
1637568174887: [Persistence] Save to DB 
1637568174887: [Task] SetCurrentTask 
1637568174888: [Pomodoro] Start Pomodoro

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Flekercommented, Nov 24, 2021

I can take a look.

0reactions
johannesjocommented, Dec 10, 2021

Hi there! Would be super great, if someone could check, if this still occurs with the new version.

I would also be interested to know what the console output looks like with the new changes in place (Ctrl+Shift+i).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot destructure property of null - Stack Overflow
When auth is null , there is no way to use a default parameter with destructuring syntax to resolve user without throwing a...
Read more >
Cannot destructure Property of Null Error in JavaScript
The "Cannot destructure property of null" error occurs when we try to destructure a property from a value that is equal to null...
Read more >
Destructuring assignment - JavaScript - MDN Web Docs
The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from ...
Read more >
TypeError: Cannot destructure property 'interface' of 'require ...
check the solidity version in the contract file and package-json file both versions should be the same, if not then download the specific ......
Read more >
Cannot destructure property of 'undefined' or 'null, typeerror
Default function parameters allow named parameters to be initialized with default values if no value or undefined is passed. In other words, the...
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