solid-devtools
solid-devtools copied to clipboard
Errors when using it in Electron
Hello, I have tried using the extension by following the instructions https://www.electronjs.org/docs/latest/tutorial/devtools-extension and seems like there's an issue with it.
session.defaultSession.loadExtension(
join(
homedir(),
'/Library/Application Support/Google/Chrome Beta/Default/Extensions/kmcfjchnmmaeeagadbhoofajiopoceel/0.27.3.0_0'
)
);
The output
[20866:0628/125538.597770:ERROR:extensions_browser_client.cc(62)] Extension Error:
OTR: false
Level: 2
Source: chrome-extension://kmcfjchnmmaeeagadbhoofajiopoceel/assets/background.ts-9e9ef213.js
Message: Uncaught TypeError: Cannot read properties of undefined (reading 'addListener')
ID: kmcfjchnmmaeeagadbhoofajiopoceel
Type: RuntimeError
Context: chrome-extension://kmcfjchnmmaeeagadbhoofajiopoceel/assets/background.ts-9e9ef213.js
Stack Trace:
{
Line: 1
Column: 1
URL: chrome-extension://kmcfjchnmmaeeagadbhoofajiopoceel/assets/background.ts-9e9ef213.js
Function: (anonymous function)
}
[20866:0628/125538.597966:ERROR:extensions_browser_client.cc(62)] Extension Error:
OTR: false
Level: 1
Source: manifest.json
Message: Service worker registration failed. Status code: 15
ID: kmcfjchnmmaeeagadbhoofajiopoceel
Type: ManifestError
dom ready
add /etc/hosts
[20866:0628/125539.352692:ERROR:CONSOLE(2)] "Electron renderer.bundle.js script failed to run", source: node:electron/js2c/renderer_init (2)
[20866:0628/125539.352717:ERROR:CONSOLE(2)] "TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))", source: node:electron/js2c/renderer_init (2)
Same issue when following the Usage section of Electron DevTools Installer
Would it be possible to prepare a reproduction or guide me to some working electron + solid template? I haven't used electron so I'm not sure if what could I do to help with setting up the devtools there. Usually people use the overlay package instead of the extension on tauri/electoron.