-
-
Notifications
You must be signed in to change notification settings - Fork 879
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
Vue-virtual-scroller and Nuxt #832
Comments
For those who want to use this lib with Nuxt 3: 1 - Create a import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
import {
DynamicScroller,
DynamicScrollerItem,
RecycleScroller,
} from "vue-virtual-scroller";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.component("RecycleScroller", RecycleScroller);
nuxtApp.vueApp.component("DynamicScroller", DynamicScroller);
nuxtApp.vueApp.component("DynamicScrollerItem", DynamicScrollerItem);
}); Explanation: With Nuxt 3 we have to register our components inside the Check the Nuxt 3 doc for more: https://nuxt.com/docs/guide/directory-structure/plugins |
No, it does not work:
|
I found a solution, you just need to install the next branch |
scrollToBottom not working.. |
Describe the bug
I cannot get vue-virtual-scroller to work with my nuxt/vue3 App. I use the newest version of Nuxt: 3.7.4.
Searching the internet I found a working codepen with nuxt 2.15.2, so I believe it is the Nuxt version, that is my problem.
Anybody have the same issue?
Reproduction
✘ [ERROR] No matching export in "node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default"
ERROR error while updating dependencies: 14.58.47
Error: Build failed with 1 error:
node_modules/.pnpm/vue-virtual-scroller@1.1.2_vue@3.3.4/node_modules/vue-virtual-scroller/dist/vue-virtual-scroller.esm.js:4:7: ERROR: No matching export in "node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default"
at failureErrorWithLog (/home/piarj/cloud-frontend-ver2/cloud-v2/node_modules/.pnpm/esbuild@0.18.20/node_modules/esbuild/lib/main.js:1649:15)
at /home/piarj/cloud-frontend-ver2/cloud-v2/node_modules/.pnpm/esbuild@0.18.20/node_modules/esbuild/lib/main.js:1058:25
at /home/piarj/cloud-frontend-ver2/cloud-v2/node_modules/.pnpm/esbuild@0.18.20/node_modules/esbuild/lib/main.js:1525:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
ℹ Vite client warmed up in 4938ms 14.58.47
✔ Nitro built in 939 ms nitro 14.58.47
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: