Skip to content

在按需加载的模式下,从文件递归生成菜单时出现:TypeError: Cannot read property 'propsData' of undefined  #1860

@JollyGo

Description

@JollyGo
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.4.12

Environment

macOS:10.15.3 ,Chrome: 80.0.3987.132,vue: 2.6.11

Reproduction link

https://github.com/JollyGo/vue-learn

Steps to reproduce

# git clone https://github.com/JollyGo/vue-learn
# yarn
# yarn run serve

What is expected?

能够正常显示目录

What is actually happening?

无显示,在Console中出现 TypeError: Cannot read property 'propsData' of undefined ,报错文件位置在.node_modules/ant-design-vue/es/vc-menu/SubPopupMenu.js


当使用Vue.use 加载Menu当时候就正常使用,在main.js中加载或者在SubMenu.vue中使用都可以正常使用

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions