Home > Blockchain >  No matching export for import "default"
No matching export for import "default"

Time:07-27

When adding vue-virtual-scroller using yarn I get the following error

No matching export in "node_modules/vue/dist/vue.esm-bundler.js" for import "default"

    node_modules/vue-virtual-scroller/dist/vue-virtual-scroller.esm.js:4:7:
      4 │ import Vue from 'vue';
        ╵        ~~~

I tried deleting node-modules and re-installing the package multiple times. But the error remains. Any idea how to solve this? Using Vue3.

CodePudding user response:

It looks like the installed version of the plugin is still targeting Vue 2.

You have to install vue-virtual-scroller@next for Vue 3 ☺️

  • Related