Closed 209 closed 2 years ago
Nuxt3 is in beta, there are many bugs that have not yet been fixed, and the API is even subject to change, so we hope to wait for it to become more stable before continuing to adapt it.
More info see https://github.com/nuxt/framework/projects/2.
It's not a nuxt3 problem. I reproduced the bug with vite: https://github.com/209/vite-ssr-elements-ui
<template>
<el-dropdown>
<span>test</span>
<template #dropdown>
<div>
<el-dropdown-menu>
<el-dropdown-item>Action 1</el-dropdown-item>
<el-dropdown-item>Action 2</el-dropdown-item>
</el-dropdown-menu>
</div>
</template>
</el-dropdown>
</template>
<script>
import { ElDropdown, ElDropdownMenu, ElDropdownItem } from 'element-plus';
export default {
components: {
ElDropdown, ElDropdownMenu, ElDropdownItem
}
};
</script>
Try element-plus/lib
.
I tried. No progress: warning appears
Yeah, I can reproduce it. Maybe it's related to vue ssr, I haven't found a solution for it yet.
Sorry, i forgot to add this link: https://github.com/vuejs/vue-next/issues/3989 Maybe it's vue3 problem.
This is a problem with vue ssr, let's wait for the fix
https://github.com/209/element-plus-nuxt-starter