Error:Vscode Web View Could not Initialize
时间:2024-04-13 19:10:28 来源:网络cs 作者:往北 栏目:卖家故事 阅读:
问题场景:在vscode上安装ployglot Notebook插件,创建了了一些*.dib和*.ipynb文件,然后在vscode中再次点击打开的时候
报错:Error loading webview: Error: Could not register service workers: TypeError: Failed to register a ServiceWorker for scope
解决方案:
方案1:重启vscode
方案2:
(1)关闭vscode后,按WIN + R,输入cmd,打开终端,然后输入命令
code --no-sandbox
(3)重启vscode
方案3:
(1)关闭vscode以及在task Manager里面关闭vscode相关的进程
(2)切换到 C:\Users\<user_name>\AppData\Roaming\Code
删除里面的cache目录
Cache
CachedData
CachedExtensions
CachedExtensionVSIXs (if this folder exists)
Code Cache
(3)重启vscode
参考链接:
[1] vscode加载web 视图,报错:“Error: Could not register serviceworkers: InvalidstateError: Failed to regist“_vscode加载web视图时出错_南城猿的博客-CSDN博客
[2] visual studio code - Error loading webview: Error: Could not register service workers: TypeError: Failed to register a ServiceWorker for scope - Stack Overflow
阅读本书更多章节>>>>本文链接:https://www.kjpai.cn/gushi/2024-04-13/158226.html,文章来源:网络cs,作者:往北,版权归作者所有,如需转载请注明来源和作者,否则将追究法律责任!