Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V5在dumi中使用时报错,Uncaught (in promise) TypeError: Cannot read properties of null (reading 'ownerDocument') #5125

Closed
ferrydjing opened this issue May 30, 2023 · 4 comments

Comments

@ferrydjing
Copy link

在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 ()
at mf-dep____vendor.3fe14587.async.js:45146:71
at new Promise ()
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. (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 ()
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. @ 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 ()
at fulfilled (mf-dep____vendor.3fe14587.async.js:45143:58)

image
@hustcc
Copy link
Member

hustcc commented May 30, 2023

@ferrydjing 你那边有复现的环境,可以帮忙调试一下,并提交一个 PR 吗?

@lxfu1
Copy link
Member

lxfu1 commented Aug 14, 2023

tslib 版本问题,锁定一下版本,npm 用 resolutions

  "pnpm": {
    "overrides": {
      "tslib": "2.6.1"
    }
  },

@lxfu1 lxfu1 closed this as completed Aug 14, 2023
@xiaoiver
Copy link
Contributor

tslib 版本问题,锁定一下版本,npm 用 resolutions

所以是 tslib 最新版本生成的 get 方法有问题是么?

@lxfu1
Copy link
Member

lxfu1 commented Aug 14, 2023

tslib 版本问题,锁定一下版本,npm 用 resolutions

所以是 tslib 最新版本生成的 get 方法有问题是么?

我看 pnpm-lock.yaml 里面有1.41.1 (好几个库的依赖~~)和最新的2.6.1 版本,最新的 2.6.1 没问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants