solid-devtools icon indicating copy to clipboard operation
solid-devtools copied to clipboard

Errors when using it in Electron

Open seahindeniz opened this issue 2 years ago • 2 comments

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)

seahindeniz avatar Jun 28 '23 10:06 seahindeniz

Same issue when following the Usage section of Electron DevTools Installer

nicodalfonso avatar Jul 12 '23 21:07 nicodalfonso

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.

thetarnav avatar Jul 13 '23 06:07 thetarnav