question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

chrome-devtools "Extension server error: Object not found: <top>"

See original GitHub issue
  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:

The below warnings appears every time I start an electron instance with chome-devtools enabled. This is a similar issue to #664. It has no apparent effect on the behaviour of the app.

Console output when you run electron-forge with the environment variable DEBUG=electron-forge:*. (Instructions on how to do so here). Please include the stack trace if one exists.

The following is output approx 2 seconds after the electron window opens and each line appears in approx 1 second intervals.

[7496:0214/213940.214:ERROR:CONSOLE(7830)] "Extension server error: Object not found: <top>", source: chrome-devtools://devtools/bundled/shell.js (7830)
[7496:0214/213941.213:ERROR:CONSOLE(7830)] "Extension server error: Object not found: <top>", source: chrome-devtools://devtools/bundled/shell.js (7830)
[7496:0214/213942.213:ERROR:CONSOLE(7830)] "Extension server error: Object not found: <top>", source: chrome-devtools://devtools/bundled/shell.js (7830)
[7496:0214/213943.214:ERROR:CONSOLE(7830)] "Extension server error: Object not found: <top>", source: chrome-devtools://devtools/bundled/shell.js (7830)
[7496:0214/213944.214:ERROR:CONSOLE(7830)] "Extension server error: Object not found: <top>", source: chrome-devtools://devtools/bundled/shell.js (7830)
[7496:0214/213945.213:ERROR:CONSOLE(7830)] "Extension server error: Object not found: <top>", source: chrome-devtools://devtools/bundled/shell.js (7830)
[7496:0214/213946.214:ERROR:CONSOLE(7830)] "Extension server error: Object not found: <top>", source: chrome-devtools://devtools/bundled/shell.js (7830)

What command line arguments are you passing?

electron-forge start

What does your config.forge data in package.json look like?

    "forge": {
      "make_targets": {
        "win32": [
          "squirrel"
        ],
        "darwin": [
          "zip"
        ],
        "linux": [
          "deb",
          "rpm"
        ]
      },
      "electronPackagerConfig": {
        "packageManager": "npm"
      },
      "electronWinstallerConfig": {
        "name": "forge_react"
      },
      "electronInstallerDebian": {},
      "electronInstallerRedhat": {},
      "github_repository": {
        "owner": "",
        "name": ""
      },
      "windowsStoreConfig": {
        "packageName": "",
        "name": "forgereact"
      }
    }

Please provide either a failing minimal testcase (with a link to the code) or detailed steps to reproduce your problem. Using electron-forge init is a good starting point, if that is not the source of your problem.

Create a new electron-forge app using the ‘react’ template. Then start an instance with no modifications to code.

electron-forge init my-new-project --template=react
cd my-new-project
electron-forge start

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aplahitkocommented, Jun 18, 2019

After electron-forge init myapp --template=react I was having the same problem. s a boob, having found little to help online, I threw the following hail Mary and it worked.

npm install npm-check -g npm-check -u

using the last command above I interactively update all outdate packages to their latest versions and this error is gone now. In my case the updated packages were:

[npm-check] Update complete! [npm-check] react@16.8.6, react-dom@16.8.6, react-hot-loader@4.11.1, eslint@5.16.0, eslint-config-airbnb@17.1.0, eslint-plugin-jsx-a11y@6.2.1 [npm-check] You should re-run your tests to make sure everything works with the updates.

I hope this is helpful.

1reaction
maleptcommented, Feb 15, 2019

I’m pretty sure it’s not. I searched GitHub and found this error in repos that do not use Electron Forge.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Extension server error: Object not found: <top>" #8188 - GitHub
Describe the bug when runing the quasar dev -m electron, it always reports: [14564:1212/004403.341:ERROR:CONSOLE(1)] "Extension server ...
Read more >
Vue Electron, devtools throwing exception - Stack Overflow
Literally out of the blue, I've started getting the following console message when i run npm run dev
Read more >
devtools.inspectedWindow in the context of MV3 extension's ...
For MV3-based ones I get "Extension server error: Object not found: <top>" error. I tried to execute a script: chrome.scripting.
Read more >
Issues: Find and fix problems - Chrome Developers
Use it to find solutions to problems detected by the browser, such as cookie issues and mixed content.
Read more >
Page domain - Chrome DevTools Protocol
This is omitted in case of same-document navigation, as the previously committed loaderId would not change. errorText: string. User friendly error message, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found