vue.runtime.esm.js:2872 Uncaught (in promise) TypeError: Cannot read properties of null (reading '$vnode')

This issue has been created since 2022-09-14.

Version

2.7.0

Reproduction link

github.com

Steps to reproduce

Modal.confirm({
title: h('div', {class: 'titlebox'}, [
h('span', {class: 'block center-title'}, '温馨提醒'),
]),
icon: 'none',
content: h(
'div',
{class: 'confirm-con'},
'内容',
),
class: 'hintwrap dialogClass confirm',
okText: '确认',
centered: true,
cancelText: '我再想想',}
ant 使用的是^1.7.8版本

What is expected?

To solve

What is actually happening?

vue.runtime.esm.js:2872 Uncaught (in promise) TypeError: Cannot read properties of null (reading '$vnode')
at _createElement (vue.runtime.esm.js:2872:23)
at createElement$1 (vue.runtime.esm.js:2836:12)
at h (vue.runtime.esm.js:2952:12)
at handleHintModal (ChapterDetail.vue:704:42)
at handleOptionChapter (ChapterDetail.vue:724:5)
at invokeWithErrorHandling (vue.runtime.esm.js:2987:30)
at VueComponent.invoker (vue.runtime.esm.js:1785:20)
at invokeWithErrorHandling (vue.runtime.esm.js:2987:30)
at Vue2.$emit (vue.runtime.esm.js:3685:17)
at VueComponent.handleClick2 (button.js:124:12)
_createElement @ vue.runtime.esm.js:2872
createElement$1 @ vue.runtime.esm.js:2836
h @ vue.runtime.esm.js:2952
handleHintModal @ ChapterDetail.vue:704
handleOptionChapter @ ChapterDetail.vue:724
invokeWithErrorHandling @ vue.runtime.esm.js:2987
invoker @ vue.runtime.esm.js:1785
invokeWithErrorHandling @ vue.runtime.esm.js:2987
Vue2.$emit @ vue.runtime.esm.js:3685
handleClick2 @ button.js:124
invokeWithErrorHandling @ vue.runtime.esm.js:2987
invoker @ vue.runtime.esm.js:1785
original_1._wrapper @ vue.runtime.esm.js:7428

Justineo wrote this answer on 2022-09-14

Please provide a minimal reproduction.

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-09-27
Star Count 199644
Watcher Count 6098
Fork Count 32848
Issue Count 587

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Table is not visible when column data is coming from state 6 2022-01-27 2022-09-16
`$n` should be independent across alternatives 4 2021-08-25 2022-09-05
customActionHandler not triggered on 2.0.0 and current master branch 3 2022-02-09 2022-07-07
MultiPage Menu Example causes NullPointerException 1 2022-01-31 2022-07-07
The registry parameter doesn't work 0 2022-07-15 2022-08-06
Error: New-SmbShare : The name has already been shared 0 2021-05-15 2022-09-19
HTTP deployment share is not setting 0 2021-10-16 2022-09-19
Server Core walkthrough 0 2021-06-06 2022-09-19
"[ERROR] [email protected] Unknown failure occured." keeps haunting me. 1 2022-02-18 2022-09-14
TypeError: Unsupported File Type 1 2022-08-14 2022-09-13
[BUG] The GitQlient App closes abruptly 1 2022-04-11 2022-08-25
CVE-2021-21341 (High) detected in xstream-1.4.12.jar - autoclosed 1 2021-04-02 2022-09-25
https_ and http_tcp_listener_rules seem to not accept conditions property 2 2021-12-16 2022-09-22
Add automation to repo 5 2021-10-21 2022-09-15
Initialize clickhouse with nullable columns 2 2018-08-11 2022-08-03
No "rectangle area" screeshot option in ksnip-1.9.1-continuous-x86_64.AppImage 16 2021-06-01 2022-08-14
I have an issue trying to use colab 3 2020-07-15 2022-09-09
[Feature request] _.compact method should work for objects too 0 2021-12-17 2022-09-18
[1.16.5] 铁砧事件取不到 Slot 0 的物品 1 2022-07-14 2022-09-08
Pull Radarr commit 'Update Bug Report Template [skip ci] [common]' 0 2022-09-08 2022-09-02
Pull Radarr commit 'Update Bug Report Template' 0 2022-09-08 2022-09-02
Allow non-canonical aliases (opt-in) 0 2021-07-27 2022-09-25
Unable to go get v2 3 2021-01-15 2022-08-04
Data race in app.Run with shared cli.Commands 6 2021-02-09 2022-09-23
更新最新版本之后,终端的间距变大了 1 2021-10-08 2022-01-23
Question regarding channel annoucements numConfs 1 2022-04-21 2022-07-31
Several modules not found even though properly installed 6 2022-02-16 2022-09-16
代码从github clone 下载后缺少import cn.wildfire.chat.kit.R2;这个包。请问是什么原因? 1 2021-04-28 2022-07-14
ImportError: DLL load failed 3 2022-04-08 2022-08-16
表单按钮支持disabled属性 3 2020-08-27 2022-01-07
Compress genesis.json files offered for download 3 2021-10-07 2022-02-01
有遇到过私有化部署之后,上报错误信息接口403的吗 2 2022-06-16 2022-09-26
Allow providing a custom initializer for i18next in a more flexible way 2 2022-06-16 2022-09-06
[BUG] Duplicate CDF rows for delete-only MERGE with duplicate matches 0 2022-07-15 2022-09-11
Should the repo be archived? 0 2022-06-28 2022-09-09
Sayge's Fortunes Incorrectly Dropping From NPCs 0 2021-11-04 2022-01-19
ReplayKit Broadcast Extension methods not being called. Screen Recording never starts 0 2022-04-15 2022-04-28
Update new logo from Ura Design 1 2018-05-18 2022-09-13
关于自定义解析器返回 T 或者 `Response<T>`问题 2 2021-07-30 2022-08-30
Web: Weird behaviour with iframes when scrolling 3 2021-02-05 2022-09-13
Update test-saucelabs to the latest version 🚀 2 2018-07-05 2022-07-11
[AA4AM] Add Ability to Configure Deployment Settings in Canvas App 1 2021-08-19 2022-09-11
Document how to transpile with CLI 6 2022-06-07 2022-09-17
Building MXNet 1.9 from sources breaks `mxnet.libinfo.find_include_path()` 2 2022-03-05 2022-09-17
Clarification of :setup-function 5 2017-11-20 2022-09-13
I2C not working with Waveshare 1.5” 128x128 ssd1327 OLED 3 2021-11-26 2022-09-12
[Bug] Cannot find module x when using Yarn PnP. 2 2021-08-27 2022-08-31
allocate temp tensor would be free before the end of the aysnc gpu kernel execution 3 2022-01-25 2022-09-20
[Flake] k8s.io/kubernetes/test/integration/deployment.TestDeploymentAvailableCondition 2 2022-04-02 2022-07-23
App-level version prefixing 6 2022-06-09 2022-09-20