node_modules/.bin/electron --version
: v3.0.0Expected Behavior
Working without any error.
Actual behavior
[18244:0919/160757.998:ERROR:CONSOLE(22)] "Empty response arrived for script 'chrome-devtools://devtools/remote/serve_file/@164c37e3f235134c88e80fac2a182cfba3f07f00/product_registry_impl/product_registry_impl_module.js'", source: chrome-devtools://devtools/bundled/shell.js (22)
[18244:0919/160757.999:ERROR:CONSOLE(106)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/shell.js (106)
To Reproduce
Clone electron-quick-start. Start project (npm start). Open chrome dev-tools (ctrl+shift+i), switch to Network tab and punch F5. And error will appears in terminal.
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
+1
duplicate of #12185
+ 1
+1
+1
+1
Still persist in electron 4.0.0.
+1
+1
+1
+1
+1
+1
Still persist in electron 4.0.3
+1
+1
create-react-app --typescript + electron 4.1.1
added electron to CRA with this guide:
https://medium.com/@brockhoff/using-electron-with-react-the-basics-e93f9761f86f
+1
create-react-app --typescript + electron 4.1.3
I am facing the same issue in electron v4.1.4.Getting blank screen and these errors on console when hitting f5 on network tab.
Electron Version -4.1.4
OS-Windows 10
Using Visual Studio Code for development
"Empty response arrived for script 'chrome-devtools://devtools/remote/serve_file/@a19d58ec502349db4b1424eb58c3ee45bc062878/product_registry_impl/product_registry_impl_module.js'", source: chrome-devtools://devtools/bundled/shell.js (24)
[37536:0410/100335.048:ERROR:CONSOLE(108)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/shell.js (108)
[37536:0410/100335.623:ERROR:CONSOLE(108)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/shell.js (108)
[37536:0410/100335.631:ERROR:CONSOLE(108)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/shell.js (108)
+1
+1
+1
+1
+1
+1
+1
+1
still in 5.0.1
same in 4.2.0
Same in
"electron": "^5.0.0",
"electron-debug": "^2.2.0",
+1
+1
+1
+1 grr
Duplicate of https://github.com/electron/electron/issues/13008.
Still persist in electron 5.0.6
┏ Electron -------------------
[53938:0704/170230.147482:ERROR:CONSOLE(24)] "Empty response arrived for script 'chrome-devtools://devtools/remote/serve_file/@10883df2e1a5aebd67e8b70fa71ebc5988b23b5d/product_registry_impl/product_registry_impl_module.js'", source: chrome-devtools://devtools/bundled/shell.js (24)
┗ ----------------------------
┏ Electron -------------------
[53938:0704/170230.150957:ERROR:CONSOLE(108)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/shell.js (108)
┗ ----------------------------
┏ Electron -------------------
[53938:0704/170230.347614:ERROR:CONSOLE(108)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/shell.js (108)
┗ ----------------------------
"electron": "^5.0.8",
[32944:0813/150221.864:ERROR:CONSOLE(108)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/shell.js (108)
Still...
"electron": "^6.0.8",
[16152:0911/134252.536:ERROR:CONSOLE(5738)] "SyntaxError: Unexpected token < in JSON at position
0", source: devtools://devtools/bundled/shell.js (5738)
Still...
6.0.11
[10548:1022/093400.306:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
+1
+1
still
"electron": "^7.1.1",
Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
Same
Why is this issue closed? It's still happening for people, including me.
electron 7.1.3
[8844:1204/174125.315:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
so the question is solved?
same here 7.1.3
Also in "electron": "^7.1.2"
[10276:1225/111005.752:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
same with electron 7.1.7, issue still exists
[120584:0102/125910.031:ERROR:CONSOLE(24)] "Empty response arrived for script 'devtools://devtools/remote/serve_file/@77819d0847fe58ff62ad279c3df5429e9d40a906/product_registry_impl/product_registry_impl_module.js'", source: devtools://devtools/bundled/shell.js
electron 7.1.7, webpack 4.41.5, macos
[49600:0107/114635.422158:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
same + 1
chrome:79.0.3945.88
platform:windows10 & windows 2012
+1
+1
+1
This is appalling. + 1
Stil here also in linux
Experiencing the same issue as well.
THIS ISSUE IS CLOSED BECAUSE IT'S A DUPLICATE.
POSTING HERE DOESN'T HELP! Posting +1 on an issue without reading the thread is also tragic..
@tbakerweb @marcosilvestroni @alisoncamilleri (Sorry you guys were recent)
我在电子版v4.1.4中遇到相同的问题。在网络标签上按f5键时,在控制台上出现黑屏和这些错误。
电子版-4.1.4
OS-Windows 10
使用Visual Studio代码进行开发
“脚本'chrome-devtools://devtools/remote/serve_file/@a19d58ec502349db4b1424eb58c3ee45bc062878/product_registry_impl/product_registry_impl_module.js'的响应已到达,来源:chrome- devtools://devtools/bundled/shell.js(24)
[37536:0410 / 100335.048:ERROR:CONSOLE(108)]“未捕获(承诺)错误:无法实例化:ProductRegistryImpl.Registry”,来源:chrome-devtools ://devtools/bundled/shell.js(108)
[37536:0410 / 100335.623:ERROR:CONSOLE(108)]“未捕获(承诺)错误:无法实例化:ProductRegistryImpl.Registry”,来源:chrome-devtools://devtools/bundled/shell.js(108)
[ 37536:0410 / 100335.631:ERROR:CONSOLE(108)]“未捕获(承诺)错误:无法实例化:ProductRegistryImpl.Registry”,来源:chrome-devtools://devtools/bundled/shell.js(108)
请问你是如何解决的
same in electron 7.1.11
do not use 'mainWindow.webContents.openDevTools()' in 'app.on("ready"()=>{})'
when app start use command+option+i to open devtools.
You won't see these reports
I first noticed this happening when I went to the performance tab in dev tools and hit the record button. My app still seems to runs fine, but I get those annoying error messages in console. I'm using 7.1.7.
This issue was even mentioned in this performance profiling bug:
https://github.com/electron/electron/issues/14763
I just tried out @xiaosu12138's suggestion to not open the devtools, in my main.ts
file, and the error did go away for me. I found that the error appears when I simply visit the performance tab in dev tools.
Since Electron remembers your last visited tab in dev tools, if you last visited the performance tab, it will show the error. What worked for me is just visiting a different tab before I closed the app. Now, I can still start the app with dev tools open and won't see the error.
After I updated to electron@^8.2.0, this error has gone. It bothered me when I was in electron@^7.x.x.
same in electron 7.3.1
Nobody solved this problem?
same problem in v9.0.4
Nobody can solve it?
After I updated to electron@^8.2.0, this error has gone. It bothered me when I was in electron@^7.x.x.
really ?????
After I updated to electron@^8.2.0, this error has gone.
really!
same in electron 4.2.12
Most helpful comment
still
"electron": "^7.1.1",
Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)