electron-userland / electron-webpack-quick-start

A bare minimum project structure to get started developing with electron-webpack.
https://webpack.electron.build/
730 stars 258 forks source link

"Extension server error: Object not found: <top>" #56

Open loopmode opened 5 years ago

loopmode commented 5 years ago

The main/index.js file is attempting to open the devtools too soon: https://github.com/electron-userland/electron-webpack-quick-start/blob/master/src/main/index.js#L15-L17

This results in an error message printed to the console: "Extension server error: Object not found: <top>"

A couple of solutions are proposed in https://github.com/SimulatedGREG/electron-vue/issues/389

thoni56 commented 4 years ago

Yes, wrapping the opening of devtools inside did-frame-finish-load() worked for me.

zivyuan commented 2 years ago

I also encountered the same problem. In my case, the page was stuck because a piece of code created tens of thousands of image previews