Skip to content

Error in render: "TypeError: Cannot read property 'propsData' of undefined" #370

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

Closed
1 task done
kikong opened this issue Jan 4, 2019 · 3 comments
Closed
1 task done
Labels

Comments

@kikong
Copy link

kikong commented Jan 4, 2019

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

Version

undefined

Environment

Vue2 vueCLI=>3.2.1

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1.not Full import for ant-design-vue compoments
2.import menu component in .vue file
3.run app ,then Error is throwen "Error in render: "TypeError: Cannot read property 'propsData' of undefined""

What is expected?

work as "Full import " setting

What is actually happening?

[Vue warn]: Error in render: "TypeError: Cannot read property 'propsData' of undefined"
found in
--->

at /src/App.vue

TypeError: Cannot read property 'propsData' of undefined
at VueComponent.renderCommonMenuItem (https://zrlr40m183.codesandbox.io/node_modules/ant-design-vue/dist/antd.min.js:19:131758)

at VueComponent.renderMenuItem (https://zrlr40m183.codesandbox.io/node_modules/ant-design-vue/dist/antd.min.js:19:133023)

at eval (https://zrlr40m183.codesandbox.io/node_modules/ant-design-vue/dist/antd.min.js:19:133617)

at Array.map ()

@tangjinzhou
Copy link
Member

https://codesandbox.io/s/6ym097kr4z
PS: 建议使用Vue.use(Menu)全局注册, 会自动为你注册Menu下子组件

@kikong
Copy link
Author

kikong commented Jan 7, 2019

https://codesandbox.io/s/6ym097kr4z
PS: 建议使用Vue.use(Menu)全局注册, 会自动为你注册Menu下子组件

ok,已经改用全局导入的方式

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants