最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Uncaught (in promise) Error: Cannot read properties of undefined (reading '_RUNTIME_') - Stack Over

programmeradmin2浏览0评论

I got a React (v18) project and I've done something that now causing the error appear in the dev tools. Doesn't seem to break any of my flows. The error does not point me to any of my code lines, but VJPCOI.js:920

The full error message is

Uncaught (in promise) Error: Cannot read properties of undefined (reading 'RUNTIME') at wrappedSendMessageCallback (ZSVJPCOI.js:920:22) w

The source of this error is in this function

const wrappedSendMessageCallback = ({
        reject,
        resolve
      }, reply) => {
        if (extensionAPIs.runtime.lastError) {
          if (extensionAPIs.runtime.lastError.message === CHROME_SEND_MESSAGE_CALLBACK_NO_RESPONSE_MESSAGE) {
            resolve();
          } else {
            reject(new Error(extensionAPIs.runtime.lastError.message)); <-- error here
          }
        } else if (reply && reply.__mozWebExtensionPolyfillReject__) {
          reject(new Error(reply.message));
        } else {
          resolve(reply);
        }
      };

Remend me a good way to troubleshoot/debug this error. I was not able to find any related topics in here. I don't know where to start...

I got a React (v18) project and I've done something that now causing the error appear in the dev tools. Doesn't seem to break any of my flows. The error does not point me to any of my code lines, but VJPCOI.js:920

The full error message is

Uncaught (in promise) Error: Cannot read properties of undefined (reading 'RUNTIME') at wrappedSendMessageCallback (ZSVJPCOI.js:920:22) w

The source of this error is in this function

const wrappedSendMessageCallback = ({
        reject,
        resolve
      }, reply) => {
        if (extensionAPIs.runtime.lastError) {
          if (extensionAPIs.runtime.lastError.message === CHROME_SEND_MESSAGE_CALLBACK_NO_RESPONSE_MESSAGE) {
            resolve();
          } else {
            reject(new Error(extensionAPIs.runtime.lastError.message)); <-- error here
          }
        } else if (reply && reply.__mozWebExtensionPolyfillReject__) {
          reject(new Error(reply.message));
        } else {
          resolve(reply);
        }
      };

Remend me a good way to troubleshoot/debug this error. I was not able to find any related topics in here. I don't know where to start...

Share Improve this question asked Aug 23, 2023 at 19:25 Simon NazarenkoSimon Nazarenko 1573 silver badges12 bronze badges 2
  • I restarted my old project, and i suffered the same problem now. I remember that there had been no problem about it, but it occurs now. It seems no more other big problem, but the red 'x' at the console logger. – taiwanHsi Commented Aug 24, 2023 at 14:48
  • see the answer from Chuen-Shiuan Wei below. The issue was caused by WebChatGPT Chrome extension – Simon Nazarenko Commented Aug 25, 2023 at 18:13
Add a ment  | 

1 Answer 1

Reset to default 12

Caused by chrome extension :WebChatGPT

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论