Chrome 内容调度程序服务:事件TAB_STATE_GET_NAVIGATION_METHOD没有监听程序

u59ebvdq  于 2023-02-06  发布在  Go
关注(0)|答案(1)|浏览(93)

我曾尝试在React应用程序中使用许多Map SDK,但没有一个成功,每当我尝试渲染Map时,我都会出现一系列错误,请注意,API密钥没有限制,我认为问题来自React本身。
ReactV18

ContentDispatcherService: no listeners for an event TAB_STATE__GET_NAVIGATION_METHOD
Uncaught TypeError: (0 , react_google_maps __WEBPACK_IMPORTED_MODULE_1__.createClient) is not a function
    at MainPage.jsx:8:1
    at commitHookEffectListMount (react-dom.development.js:23150:1)
    at commitPassiveMountOnFiber (react-dom.development.js:24926:1)
    at commitPassiveMountEffects_complete (react-dom.development.js:24891:1)
    at commitPassiveMountEffects_begin (react-dom.development.js:24878:1)
    at commitPassiveMountEffects (react-dom.development.js:24866:1)
    at flushPassiveEffectsImpl (react-dom.development.js:27039:1)
    at flushPassiveEffects (react-dom.development.js:26984:1)
    at react-dom.development.js:26769:1
    at workLoop (scheduler.development.js:266:1)
react-dom.development.js:22839 Uncaught TypeError: (0 , _react_google_maps s__WEBPACK_IMPORTED_MODULE_1__.createClient) is not a function
    at MainPage.jsx:8:1
    at commitHookEffectListMount (react-dom.development.js:23150:1)
    at invokePassiveEffectMountInDEV (react-dom.development.js:25154:1)
    at invokeEffectsInDev (react-dom.development.js:27351:1)
    at commitDoubleInvokeEffectsInDEV (react-dom.development.js:27330:1)
    at flushPassiveEffectsImpl (react-dom.development.js:27056:1)
    at flushPassiveEffects (react-dom.development.js:26984:1)
    at react-dom.development.js:26769:1
    at workLoop (scheduler.development.js:266:1)
    at flushWork (scheduler.development.js:239:1)
2react-dom.development.js:18687 The above error occurred in the <MainPage> component:

    at MainPage (http://localhost:3000/static/js/bundle.js:910:63)
    at RenderedRoute (http://localhost:3000/static/js/bundle.js:44956:5)
    at Routes (http://localhost:3000/static/js/bundle.js:45422:5)
    at div
    at div
    at Feed
    at div
    at div
    at Home
    at div
    at App
    at Router (http://localhost:3000/static/js/bundle.js:45360:15)
    at BrowserRouter (http://localhost:3000/static/js/bundle.js:43562:5)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
logCapturedError @ react-dom.development.js:18687
react-dom.development.js:12056 Uncaught TypeError: (0 , _tomtom_international_web_sdk_services__WEBPACK_IMPORTED_MODULE_1__.createClient) is not a function
    at MainPage.jsx:8:1
    at commitHookEffectListMount (react-dom.development.js:23150:1)
    at commitPassiveMountOnFiber (react-dom.development.js:24926:1)
    at commitPassiveMountEffects_complete (react-dom.development.js:24891:1)
    at commitPassiveMountEffects_begin (react-dom.development.js:24878:1)
    at commitPassiveMountEffects (react-dom.development.js:24866:1)
    at flushPassiveEffectsImpl (react-dom.development.js:27039:1)
    at flushPassiveEffects (react-dom.development.js:26984:1)
    at react-dom.development.js:26769:1
    at workLoop (scheduler.development.js:266:1)
manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.
brgchamk

brgchamk1#

我通过删除React StrictMode解决了此问题

相关问题