V5在dumi中使用时报错,Uncaught (in promise) TypeError: Cannot read properties of null (reading 'ownerDocument') #5125
ferrydjing posted onGitHub
在dumi中使用时报错报错信息如下 Uncaught (in promise) TypeError: privateMap.get is not a function at classPrivateFieldGet (mf-dep__vendor.3fe14587.async.js:78073:21) at push../node_modules/@antv/gui/esm/util/selection.js.Selection.maybeAppendByClassName (mf-dep____vendor.3fe14587.async.js:66012:84) at push../node_modules/@antv/gui/esm/ui/axis/axis.js.Axis.render (mf-dep____vendor.3fe14587.async.js:58025:82) at push../node_modules/@antv/gui/esm/core/gui.js.GUI.connectedCallback (mf-dep____vendor.3fe14587.async.js:57882:14) at Canvas.mountChildren (mf-dep____vendor.3fe14587.async.js:20724:16) at Group.appendChild (mf-dep____vendor.3fe14587.async.js:12786:38) at Selection.append (mf-dep____vendor.3fe14587.async.js:57231:25) at mf-dep____vendor.3fe14587.async.js:45634:14 at Selection.join (mf-dep____vendor.3fe14587.async.js:57354:26) at mf-dep____vendor.3fe14587.async.js:45630:14 at Generator.next (<anonymous>) at mf-dep____vendor.3fe14587.async.js:45146:71 at new Promise (<anonymous>) at push../node_modules/@antv/g2/esm/runtime/plot.js.awaiter (mf-dep__vendor.3fe14587.async.js:45142:12) at plotView (mf-dep____vendor.3fe14587.async.js:45576:12) at Group.<anonymous> (mf-dep____vendor.3fe14587.async.js:45270:13) at Selection.each (mf-dep____vendor.3fe14587.async.js:57388:22) at mf-dep____vendor.3fe14587.async.js:45269:14 at Selection.join (mf-dep____vendor.3fe14587.async.js:57354:26) at mf-dep____vendor.3fe14587.async.js:45264:14 at Generator.next (<anonymous>) at fulfilled (mf-dep____vendor.3fe14587.async.js:45143:58) classPrivateFieldGet @ mf-dep__vendor.3fe14587.async.js:78073 push../node_modules/@antv/gui/esm/util/selection.js.Selection.maybeAppendByClassName @ mf-dep____vendor.3fe14587.async.js:66012 push../node_modules/@antv/gui/esm/ui/axis/axis.js.Axis.render @ mf-dep____vendor.3fe14587.async.js:58025 push../node_modules/@antv/gui/esm/core/gui.js.GUI.connectedCallback @ mf-dep____vendor.3fe14587.async.js:57882 mountChildren @ mf-dep____vendor.3fe14587.async.js:20724 appendChild @ mf-dep____vendor.3fe14587.async.js:12786 append @ mf-dep____vendor.3fe14587.async.js:57231 (anonymous) @ mf-dep____vendor.3fe14587.async.js:45634 join @ mf-dep____vendor.3fe14587.async.js:57354 (anonymous) @ mf-dep____vendor.3fe14587.async.js:45630 (anonymous) @ mf-dep____vendor.3fe14587.async.js:45146 push../node_modules/@antv/g2/esm/runtime/plot.js.awaiter @ mf-dep__vendor.3fe14587.async.js:45142 plotView @ mf-dep____vendor.3fe14587.async.js:45576 (anonymous) @ mf-dep____vendor.3fe14587.async.js:45270 each @ mf-dep____vendor.3fe14587.async.js:57388 (anonymous) @ mf-dep____vendor.3fe14587.async.js:45269 join @ mf-dep____vendor.3fe14587.async.js:57354 (anonymous) @ mf-dep____vendor.3fe14587.async.js:45264 fulfilled @ mf-dep____vendor.3fe14587.async.js:45143 Promise.then (async) step @ mf-dep____vendor.3fe14587.async.js:45145 fulfilled @ mf-dep____vendor.3fe14587.async.js:45143 Promise.then (async) step @ mf-dep____vendor.3fe14587.async.js:45145 fulfilled @ mf-dep____vendor.3fe14587.async.js:45143 Promise.then (async) step @ mf-dep____vendor.3fe14587.async.js:45145 (anonymous) @ mf-dep____vendor.3fe14587.async.js:45146 push../node_modules/@antv/g2/esm/runtime/plot.js.awaiter @ mf-dep__vendor.3fe14587.async.js:45142 plot @ mf-dep____vendor.3fe14587.async.js:45178 (anonymous) @ mf-dep____vendor.3fe14587.async.js:46288 Promise.then (async) render @ mf-dep____vendor.3fe14587.async.js:46288 (anonymous) @ mf-dep____vendor.3fe14587.async.js:30270 render @ mf-dep____vendor.3fe14587.async.js:30270 initChart @ index.tsx:189 (anonymous) @ index.tsx:193 commitHookEffectListMount @ mf-dep_node_modules_react-dom_index_js.96f74139.async.js:23154 commitPassiveMountOnFiber @ mf-dep_node_modules_react-dom_index_js.96f74139.async.js:24930 commitPassiveMountEffects_complete @ mf-dep_node_modules_react-dom_index_js.96f74139.async.js:24895 commitPassiveMountEffects_begin @ mf-dep_node_modules_react-dom_index_js.96f74139.async.js:24882 commitPassiveMountEffects @ mf-dep_node_modules_react-dom_index_js.96f74139.async.js:24870 flushPassiveEffectsImpl @ mf-dep_node_modules_react-dom_index_js.96f74139.async.js:27043 flushPassiveEffects @ mf-dep_node_modules_react-dom_index_js.96f74139.async.js:26988 (anonymous) @ mf-dep_node_modules_react-dom_index_js.96f74139.async.js:26773 workLoop @ mf-dep_node_modules_react-dom_index_js.96f74139.async.js:30191 flushWork @ mf-dep_node_modules_react-dom_index_js.96f74139.async.js:30164 performWorkUntilDeadline @ mf-dep_node_modules_react-dom_index_js.96f74139.async.js:30458 queue.<computed> @ mf-dep____vendor.3fe14587.async.js:85474 run @ mf-dep____vendor.3fe14587.async.js:85448 eventListener @ mf-dep____vendor.3fe14587.async.js:85459 mf-dep____vendor.3fe14587.async.js:57153 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'ownerDocument') at select (mf-dep____vendor.3fe14587.async.js:57153:51) at selectG2Elements (mf-dep____vendor.3fe14587.async.js:40660:68) at tooltip (mf-dep____vendor.3fe14587.async.js:40466:22) at mf-dep____vendor.3fe14587.async.js:40583:16 at mf-dep____vendor.3fe14587.async.js:45305:37 at Generator.next (<anonymous>) at fulfilled (mf-dep____vendor.3fe14587.async.js:45143:58)
<img width="831" alt="image" src="https://github.com/antvis/G2/assets/27794468/f9575365-8d69-4a61-9600-c5b68639436e">