Description
I'm using electron-devtools-installer
to set up the Redux DevTools extension for debugging Redux in an Electron app. I set the forceDownload
option to true
, which means it fetches the latest version of the Chrome extension on launch. I haven't tried running the app in over a week, and now I'm seeing this error when I start it:
Debugger listening on ws://127.0.0.1:9229/4e89d8f4-6a1a-4903-914a-c13269216877
For help, see: https://nodejs.org/en/docs/inspector
DevTools listening on ws://127.0.0.1:65150/devtools/browser/4b7ee0fb-9e8b-4619-b68f-0e8c7a5c8b67
[28323:0826/112312.833741:ERROR:extensions_browser_client.cc(70)] Extension Error:
OTR: false
Level: 2
Source: chrome-extension://lmhkpmbekcpmknklioeibfkpmmfibljd/background.bundle.js
Message: Uncaught TypeError: Cannot read properties of undefined (reading 'onClicked')
ID: lmhkpmbekcpmknklioeibfkpmmfibljd
Type: RuntimeError
Context: chrome-extension://lmhkpmbekcpmknklioeibfkpmmfibljd/background.bundle.js
Stack Trace:
{
Line: 1
Column: 1
URL: chrome-extension://lmhkpmbekcpmknklioeibfkpmmfibljd/background.bundle.js
Function: (anonymous function)
}
[28323:0826/112312.834218:ERROR:extensions_browser_client.cc(70)] Extension Error:
OTR: false
Level: 1
Source: manifest.json
Message: Service worker registration failed. Status code: 15
ID: lmhkpmbekcpmknklioeibfkpmmfibljd
Type: ManifestError
Here's the version information for the libraries I'm using:
- electron v32.0.1
- electron-devtools-installer v3.2.0
I created a minimal reproducible example at mikerourke/electron-redux-devtools-issue.
I'm guessing this was a result of the upgrade to Manifest v3? I'm not very familiar with the Manifest v3 changes, but from what I remember reading, it's a little more restrictive in terms of what you can do. Is there any way to mitigate this? I can do some of my own research, but if this is a quick fix from someone with more knowledge of Chrome extensions, I'd prefer to defer to their expertise.