Error:Vscode Web View Could not Initialize

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

转载请说明出处内容投诉
CSS教程_站长资源网 » Error:Vscode Web View Could not Initialize

发表评论

欢迎 访客 发表评论

一个令你着迷的主题!

查看演示 官网购买