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

Error: Extension server error: Object not found: <top> #207

Open
magehrke opened this issue May 23, 2021 · 2 comments
Open

Error: Extension server error: Object not found: <top> #207

magehrke opened this issue May 23, 2021 · 2 comments
Labels
bug Something isn't working installation Issue when trying to install the software

Comments

@magehrke
Copy link
Contributor

Error:

  • I build the app with npm build
  • If I run npm build, everything works fine
  • However, if I run npm dev, I get the following error:
┏ Electron -------------------

  [6736:0523/215626.854590:ERROR:CONSOLE(1)] "Extension server error: Object not found: <top>", 
   source: devtools://devtools/bundled/extensions/extensions.js (1)
  
┗ ----------------------------
  • The GUI is just frozen, I cannot do anything, sometimes not even all chess pieces are loading

Problem:

  • This is a well known problem and should be an easy fix.
  • See this comment Chrome Dev-Tools error? SimulatedGREG/electron-vue#389 (comment) for example.
  • devtools needs to be initilized after the mainWindow has been loaded, but not before!
  • I could reproduce that this is indeed the problem, by uncommenting debug({ showDevTools: true }), hitting save, readding the line, hitting save again, all while the "frozen" LiGround window was open, which in the end let me use LiGround in dev mode again.
@QueensGambit
Copy link
Collaborator

QueensGambit commented May 24, 2021

Does this PR resolve your issue?

@QueensGambit QueensGambit added bug Something isn't working installation Issue when trying to install the software labels May 24, 2021
@magehrke
Copy link
Contributor Author

Thank you for the fast reply! Sadly the suggested change did not fix the problem, but the error message changed for now:

  ERROR in ./src/main/index.js
  Module parse failed: The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it)
  File was processed with these loaders:
   * ./node_modules/babel-loader/lib/index.js
  You may need an additional loader to handle the result of these loaders.
  Error: The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it)

It has still the same behavior: if I change some code, the app automatically reloads and is working fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working installation Issue when trying to install the software
Projects
None yet
Development

No branches or pull requests

2 participants