redux-devtools-extension icon indicating copy to clipboard operation
redux-devtools-extension copied to clipboard

Errors logged on startup in Electron 10

Open tomdixon opened this issue 3 years ago • 6 comments

Having recently upgraded from Electron 8 -> 10, I'm seeing console errors from the redux devtools extension on app startup. They appear to point to the use of the chrome.storage.sync API which seems to be unavailable in the Electron context.

The errors are:

Unchecked runtime.lastError: "sync" is not available in this instance of Chrome
Error handling response: TypeError: Cannot read property 'filter' of undefined
    at chrome-extension://lmhkpmbekcpmknklioeibfkpmmfibljd/js/content.bundle.js:1:21235

I'm using version 2.17.0 of the extension.

The extension does appear to work, so this isn't critical, but it'd be nice to get to the bottom of it, as the Electron docs claim that this extension should be compatible.

Any pointers would be much appreciated.

tomdixon avatar Nov 10 '20 11:11 tomdixon

I'm seeing the same error in version 2.17.0 with Electron 10.1.5.

Screenshot from 2020-11-16 09-52-09

chetbox avatar Nov 16 '20 09:11 chetbox

Also has this problem in electron 11.3.0.

ZainChen avatar Feb 20 '21 03:02 ZainChen

also appeared in electron 11.3.0 🙁

JiaoXin2005 avatar Feb 26 '21 10:02 JiaoXin2005

Also getting this one for 10.4.3

none100p avatar May 13 '21 11:05 none100p

Persists in Electron 11.4.x. Is this still maintained?

Nantris avatar Jun 04 '21 22:06 Nantris

Just submitted #802 to resolve this, but I doubt this package is maintained so it's unlikely we'll see this merged.

Edit: Also, if anyone knows the correct typeof for chrome.storage.sync that we could check against, that would be cleaner than my current solution.

Nantris avatar Jun 04 '21 23:06 Nantris