当前位置:   article > 正文

VS Code 加载 Web 视图时出错_加载 web 视图时出错: error: could not register service wo

加载 web 视图时出错: error: could not register service worker: invalidstatee

问题

这个问题遇到好几次了,每次都得去搜一阵,这里记录一下.

使用MarkDown预览时,加载 Web 视图时出错: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.

参考自 : stackover

原文:
In Windows, you can simply fix this error by clearing the cache for VSCode. Please follow the steps below:

  1. Close VSCode and also kill any background processes running in the task manager. Task Manager screenshot

  2. Go to the file explorer and to the path C:\Users\<user_name>\AppData\Roaming\Code and clear the contents of the folders

  • Cache
  • CachedData
  • CachedExtensions
  • CachedExtensionVSIXs (if this folder exists)
  • Code Cache
  1. Open VSCode and you are good to go.
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/793164
推荐阅读
相关标签
  

闽ICP备14008679号