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.

Errors logged on startup in Electron 10

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:11
  • Comments:6

github_iconTop GitHub Comments

1reaction
Slapboxcommented, Jun 4, 2021

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.

0reactions
Slapboxcommented, Jun 4, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error messages and console logs in Electron? - Stack Overflow
If you start electron like this, the console.log statements from the browser will be written to FILEPATH . (Read more about those command ......
Read more >
Supported Command Line Switches - Electron
Command line switches supported by Electron. ... Prints Chromium's logging to stderr (or a log file). ... Ignores certificate related errors.
Read more >
Top 5 electron-log Code Examples - Snyk
Learn more about how to use electron-log, based on electron-log code examples created from the most popular ways it is used in public...
Read more >
Build and Secure an Electron App - OpenID, OAuth, Node.js ...
error ('Error connecting to te API: ' + error); } };. This JavaScript module is responsible for loading the logged-in user profile when...
Read more >
Troubleshooting | Cypress Documentation
Run the same tests in both Electron and Chrome, then compare the screenshots/videos. Look for and isolate any differences in the Command Log....
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