0


Error:Vscode Web View Could not Initialize

问题场景:在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

标签: vscode ide 编辑器

本文转载自: https://blog.csdn.net/weixin_41385146/article/details/131501486
版权归原作者 非正规程序员 所有, 如有侵权,请联系我们删除。

“Error:Vscode Web View Could not Initialize”的评论:

还没有评论