Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when using it in Electron #249

Open
seahindeniz opened this issue Jun 28, 2023 · 2 comments
Open

Errors when using it in Electron #249

seahindeniz opened this issue Jun 28, 2023 · 2 comments
Labels
extension About the chrome or firefox extensions help wanted Extra attention is needed integration Issue with integration to other tools, frameworks or platforms

Comments

@seahindeniz
Copy link

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)
@nicodalfonso
Copy link

Same issue when following the Usage section of Electron DevTools Installer

@thetarnav
Copy link
Owner

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 thetarnav added integration Issue with integration to other tools, frameworks or platforms extension About the chrome or firefox extensions labels Dec 13, 2024
@thetarnav thetarnav added the help wanted Extra attention is needed label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension About the chrome or firefox extensions help wanted Extra attention is needed integration Issue with integration to other tools, frameworks or platforms
Projects
None yet
Development

No branches or pull requests

3 participants