Skip to content

系统环境: ubuntu 22.04 LTS, vs code 远程连接其他电脑或设备进行编程。 vscode加载web 视图,报错:“Error: Could not register serviceworkers: InvalidstateError: Failed to ....

解决办法:

  1. 关闭 VS Code;
  2. 在终端执行 code --no-sandbox
  3. VS Code 会重启并可以正常渲染显示远程的 图片markdown 文件。

参考:

https://blog.csdn.net/m0_58724783/article/details/127879777

© 2025 技术博客. All rights reserved by 老周有AI