Skip to main content

白屏问题

Jetbrains类软件

清除缓存

  1. 点击菜单栏中的 “File” -> “Invalidate Caches / Restart…”

  1. 点击 “Invalidate and Restart”,重启软件 尝试关闭沙盒后,白屏消失,login界面出来了 双击 shift,打开 action 输入 Registry 并打开设置,Ctrl + F 搜索 ide.browser.jcef.sandbox.enable,取消该选项勾选,关闭沙盒,点击“Enter”键盘按钮,重启As后就可以正常显示。

Visual Studio Code

报错后白屏

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

Ubuntu系统

  • 可能有另一个(可能是隐藏的)vscode 进程,这导致了问题。首先关闭 vscode,然后在终端中尝试:
killall code

Windows系统

  • 关闭vscode,在终端中输入
code --no-sandbox

非报错白屏

  1. 点击菜单栏中的 “帮助” -> “切换开发人员工具”
  2. 在打开的开发者工具中,选择“NetWork” -> “Disable cache”

  1. 回到h5页面,点击刷新