Skip to content

Errors when using it in Electron #249

@seahindeniz

Description

@seahindeniz

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    extensionAbout the chrome or firefox extensionshelp wantedExtra attention is neededintegrationIssue with integration to other tools, frameworks or platforms

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions