Super-productivity: TypeError: Cannot read property 'reduce' of undefined

Created on 11 Jun 2020  Â·  11Comments  Â·  Source: johannesjo/super-productivity

META: SP5.3.3 Browser – en – Win32 – Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36

Steps to Reproduce



1.
2.
3.
4.

Console Output

Error Log (Desktop only)

Stacktrace

reduce (webpack:///src/app/core/persistence/persistence.service.ts:459:22)
Ur (https://app.super-productivity.com/main.55b23efcec87ac33f036.js:1:1540329)
Ur (https://app.super-productivity.com/main.55b23efcec87ac33f036.js:1:1540434)
Ur (https://app.super-productivity.com/main.55b23efcec87ac33f036.js:1:1539370)
ZoneAwarePromise (webpack:///node_modules/zone.js/dist/zone.js:913:32)
Ur (https://app.super-productivity.com/main.55b23efcec87ac33f036.js:1:1539115)
Ur (https://app.super-productivity.com/main.55b23efcec87ac33f036.js:1:1551191)
remove (webpack:///src/app/core/persistence/persistence.service.ts:449:36)
Ur (https://app.super-productivity.com/main.55b23efcec87ac33f036.js:1:1540329)
Ur (https://app.super-productivity.com/main.55b23efcec87ac33f036.js:1:1540434)
bug

Most helpful comment

A new release is now available. Special thanks to @ruanformigoni for providing me with the data needed to fix this.

Also sorry everybody for the inconvenience that this caused...

All 11 comments

I am wondering how your setup is as I am unable to reproduce this. Have you been using the app before or did you start with a fresh set of data? And do you have any projects created at all?

Hi, I think this problem is the same I'm having:

Error: Uncaught (in promise): TypeError: Cannot read property 'reduce' of undefined TypeError: Cannot read property 'reduce' of undefined at t. (file:///snap/superproductivity/651/resources/app.asar/dist/webpack:/src/app/core/persistence/persistence.service.ts:459:23) at file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1540329 at Object.next (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1540434) at executor (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1539370) at new t (file:///snap/superproductivity/651/resources/app.asar/dist/webpack:/node_modules/zone.js/dist/zone.js:913:33) at D (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1539115) at t._loadForProjectIds (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1551191) at t. (file:///snap/superproductivity/651/resources/app.asar/dist/webpack:/src/app/core/persistence/persistence.service.ts:449:37) at file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1540329 at Object.next (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1540434)
! Please copy & report !

Error: Uncaught (in promise): TypeError: Cannot read property 'reduce' of undefined TypeError: Cannot read property 'reduce' of undefined at t. (file:///snap/superproductivity/651/resources/app.asar/dist/webpack:/src/app/core/persistence/persistence.service.ts:459:23) at file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1540329 at Object.next (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1540434) at executor (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1539370) at new t (file:///snap/superproductivity/651/resources/app.asar/dist/webpack:/node_modules/zone.js/dist/zone.js:913:33) at D (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1539115) at t._loadForProjectIds (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1551191) at t. (file:///snap/superproductivity/651/resources/app.asar/dist/webpack:/src/app/core/persistence/persistence.service.ts:449:37) at file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1540329 at Object.next (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1540434)
t.<anonymous> (file:///snap/superproductivity/651/resources/app.asar/dist/webpack:/src/app/core/persistence/persistence.service.ts:459:23)
Ur (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1540329)
Ur (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1540434)
Ur (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1539370)
new t (file:///snap/superproductivity/651/resources/app.asar/dist/webpack:/node_modules/zone.js/dist/zone.js:913:33)
Ur (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1539115)
Ur (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1551191)
t.<anonymous> (file:///snap/superproductivity/651/resources/app.asar/dist/webpack:/src/app/core/persistence/persistence.service.ts:449:37)
Ur (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1540329)
Ur (file:///snap/superproductivity/651/resources/app.asar/dist/main.05eca3ac60f95ea85f95.js:1:1540434)
META: SP5.3.4 Electron – en-US – Linux x86_64 – Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) superProductivity/5.3.4 Chrome/80.0.3987.165 Electron/8.3.0 Safari/537.36

System information with _neofetch_:

OS: Ubuntu 20.04 LTS x86_64 
Host: 81V7 Lenovo IdeaPad S145-15API 
Kernel: 5.4.0-33-generic 
Uptime: 2 days, 11 hours, 26 mins 
Packages: 2612 (dpkg), 22 (snap) 
Shell: fish 3.1.0 
Resolution: 1920x1080 
DE: GNOME 
WM: Mutter 
WM Theme: Yaru-dark 
Theme: Yaru-dark [GTK2/3] 
Icons: Yaru [GTK2/3] 
Terminal: x-terminal-emul 
CPU: AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx (8) @ 2.300GHz 
GPU: AMD ATI 03:00.0 Picasso 
Memory: 4392MiB / 5882MiB 

@ruanformigoni thank you. Same question to you: ave you been using the app before or did you start with a fresh set of data? And do you have any projects created at all? When did the error start to occur? Directly after (updating and) starting the app? Or after you did something?

I have been using the app regularly for some time now. I have about 7 projects. Today, just before I set up a novel gitlab integration. Now each time I start up the app it goes to this error screen:

Error Screen

I'm unable to use it anymore, unfortunatelly.

Could you by any chance provide me with your latest backup data (can be found under /.config/superProductivity/backups)? I'd really like to get to the bottom of this as quickly as possible, as there seem to be quite a lot of people having the same problem.

If it is ok for you to share it you can send it to [email protected]

E-mail sent. Anything else don't hesitate to ask.

@ruanformigoni Thank you very much! I am investigating.

So I am able to just import the newest backup without any issue. This might work as a quick fix (but make sure to backup your complete superProductivity folder before in case something goes wrong)

@ruanformigoni do you by any chance remember the exact steps you did before this error started to occur? Also it would be interesting to now if the indexedDB data is still in tact. You can investigate that by navigating to Application/Indexedb/SUP/SUP_STORE in the devtools
Screenshot from 2020-06-11 17-25-24

Yes, I opened up the app as usual, I noticed an recurring error message that gitlab was not properly configured, but sometimes this happened even when then configuration is correct. So, afterwards I clicked on new project, inserted the project ref, the gitlab token and the user reference in the last field. I clicked in the save button. The "gitlab config is incorrect" was still showing, so I restarted the app (this usually fixes the problem) and this screen started to appear.

A google drive error also appears shortly in the initial error screen:

These are the contents of SUP_STORE:

Thank you so much! I think I found this issue. I provide fix ASAP!

A new release is now available. Special thanks to @ruanformigoni for providing me with the data needed to fix this.

Also sorry everybody for the inconvenience that this caused...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

D06E picture D06E  Â·  3Comments

theCalcaholic picture theCalcaholic  Â·  3Comments

generic-user picture generic-user  Â·  3Comments

NPReport picture NPReport  Â·  3Comments

mar-v-in picture mar-v-in  Â·  3Comments