Skip to content

Cannot read property 'propsData' of undefined at VueComponent.renderCommonMenuItem #577

Closed
@xyyVee

Description

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

Version

1.3.5

Environment

Windows x64, Chrome 70, vue-cli 3.5.0

Reproduction link

Edit on CodeSandbox

Steps to reproduce

follow the step: https://vue.ant.design/components/menu-cn/#API

What is expected?

It should be the same as the image example of the official website.

What is actually happening?

throw an error:

vue.runtime.esm.js?2b0e:1887 TypeError: Cannot read property 'propsData' of undefined
    at VueComponent.renderCommonMenuItem (SubPopupMenu.js?1462:277)
    at VueComponent.renderMenuItem (SubPopupMenu.js?1462:338)
    at eval (SubPopupMenu.js?1462:390)
    at Array.map (<anonymous>)
    at Proxy.render (SubPopupMenu.js?1462:389)
    at VueComponent.Vue._render (vue.runtime.esm.js?2b0e:3535)
    at VueComponent.updateComponent (vue.runtime.esm.js?2b0e:4041)
    at Watcher.get (vue.runtime.esm.js?2b0e:4444)
    at Watcher.run (vue.runtime.esm.js?2b0e:4519)
    at flushSchedulerQueue (vue.runtime.esm.js?2b0e:4275)

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