问题:谷歌浏览器报错,报错内容如下:

谷歌浏览器控制台报错:Unchecked runtime.lastError: The message port closed before a response was received
点击报错内容,我的代码都是只有一段,这里不可能有错
谷歌浏览器控制台报错:Unchecked runtime.lastError: The message port closed before a response was received

原因:浏览器插件扩展出错

解决:

  1. 一了百了办法:排除法找到并删除这个插件
  2. 鸡肋办法:特定插件 点插件下面的详细信息,找到有权访问的网站,设置为特定网站上。通用插件 先关掉,使用时再打开
  3. 详细信息有个加载来源,点击找到本地源文件,加上if(chrome.runtime.lastError){},谷歌商店里的没找到办法
    谷歌浏览器控制台报错:Unchecked runtime.lastError: The message port closed before a response was received

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2022-01-07
  • 2022-12-23
  • 2022-01-07
  • 2022-01-07
  • 2021-05-07
猜你喜欢
  • 2022-02-15
  • 2022-02-11
  • 2021-09-25
  • 2022-12-23
相关资源
相似解决方案