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

TypeError with nuxt-ts-edge 2.5 & ant-design-vue 1.3.5 in SubPopupMenu #549

Closed
1 task done
ux-engineer opened this issue Mar 4, 2019 · 6 comments
Closed
1 task done

Comments

@ux-engineer
Copy link

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

Version

1.3.5

Environment

Mac 10.14.3, Chrome 72.0.3626.119

Reproduction link

https://github.com/envision/nuxt-ts-with-antd-submenu-bug

Steps to reproduce

git clone https://github.com/envision/nuxt-ts-with-antd-submenu-bug && cd nuxt-ts-with-antd-submenu-bug && yarn && yarn dev

What is expected?

Ant Design Vue library's components should be usable in vue templates after importing plugin via a plugin file.

What is actually happening?

In file /app/components/AppHeader.vue there isa-menu component with a single nested a-menu-item. If that item is removed, there is no errors, but with it:

TypeError
Cannot read property 'propsData' of undefined
../node_modules/ant-design-vue/lib/vc-menu/SubPopupMenu.js:318:47

AntD components are not working in templates here on Nuxt like they were working on plain Vue (I'm refactoring to Nuxt in TypeScript here). In AppHeader I needed to import each component individually to be able to use them. Even though for what I've read the guides and threads, it seems that these components should be working without individually importing them. Using a plugin file to import the library at /app/plugins/antd-ui.js.

@dzcpy
Copy link

dzcpy commented Jan 6, 2020

Nuxt, Typescript and Antd Vue... I don't think they work toghether very well...

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Feb 23, 2021
@dzcpy
Copy link

dzcpy commented Feb 23, 2021

By the way, I'm developing a module, which will help integrating Ant Design Vue with Nuxt. So far it works pretty well. I'll release it after polishing it a bit more.

@github-actions github-actions bot removed the Stale label Feb 24, 2021
@dzcpy
Copy link

dzcpy commented Feb 25, 2021

https://github.com/dzcpy/nuxt-ant-design-vue

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions
Copy link

github-actions bot commented May 4, 2022

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 May 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants