No matching export in "node_modules/vue-demi/lib/index.mjs" for import "effectScope"
See original GitHub issuei wanna use @vueuse/core
useTitle
to change my page title
but throw error when i only install it…
use vueuse 6.0.0
& vue 3.0.4
& vite 2.4.4
(this will be run only when your dependencies or config have changed)
> node_modules/@vueuse/shared/index.esm.js:1:64: error: No matching export in "node_modules/vue-demi/lib/index.mjs" for import "effectScope"
1 │ ...puted, unref, watch, ref, customRef, isVue3, isRef, effectScope, onScopeDispose, reactive, toRef, isVue2, toRefs a...
╵ ~~~~~~~~~~~
> node_modules/@vueuse/shared/index.esm.js:1:77: error: No matching export in "node_modules/vue-demi/lib/index.mjs" for import "onScopeDispose"
1 │ ...atch, ref, customRef, isVue3, isRef, effectScope, onScopeDispose, reactive, toRef, isVue2, toRefs as toRefs$1, get...
╵ ~~~~~~~~~~~~~~
> node_modules/@vueuse/shared/index.esm.js:1:179: error: No matching export in "node_modules/vue-demi/lib/index.mjs" for import "getCurrentScope"
1 │ ... isVue2, toRefs as toRefs$1, getCurrentInstance, onMounted, nextTick, getCurrentScope, onUnmounted } from 'vue-demi';
╵ ~~~~~~~~~~~~~~~
> node_modules/@vueuse/core/index.esm.js:1:131: error: No matching export in "node_modules/vue-demi/lib/index.mjs" for import "getCurrentScope"
1 │ ...urrentInstance, onMounted, onUpdated, shallowRef, getCurrentScope, reactive, markRaw, readonly, onBeforeUpdate, is...
╵ ~~~~~~~~~~~~~~~
error when starting dev server:
Error: Build failed with 4 errors:
node_modules/@vueuse/core/index.esm.js:1:131: error: No matching export in "node_modules/vue-demi/lib/index.mjs" for import "getCurrentScope"
node_modules/@vueuse/shared/index.esm.js:1:64: error: No matching export in "node_modules/vue-demi/lib/index.mjs" for import "effectScope"
node_modules/@vueuse/shared/index.esm.js:1:77: error: No matching export in "node_modules/vue-demi/lib/index.mjs" for import "onScopeDispose"
node_modules/@vueuse/shared/index.esm.js:1:179: error: No matching export in "node_modules/vue-demi/lib/index.mjs" for import "getCurrentScope"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
*edit: I downgrade vueuse -> ^5.3.0
it works
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
No matching export in "node_modules/vue/dist ...
No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "effectScope" #590.
Read more >Ask Question
error: No matching export in "node_modules/.pnpm/vue-demi@0.9.1_vue@3.1.1/node_modules/vue-demi/lib/index.esm.js" for import "effectScope".
Read more >no matching export in "node_modules/vue/dist/vue.runtime. ...
I'm not sure what you mean. But yes, this issue was caused by trying to use Vue 2 library in a Vue 3...
Read more >Vue 3 + Vite 3 compatibility | Vue Forums
However, when adding components from syncfusion, when running it displays the following error: ✘ [ERROR] No matching export in "node_modules/.
Read more >Migrating from 0.x (v1) to v2
Pinia plugins no longer directly receive the id of the store. ... node_modules/pinia/dist/pinia.mjs Can't import the named export 'computed' from non ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Getting this with Nuxt and @nuxtjs/composition-api 0.27.0
@vue/composition-api
v1.1 implementedeffectScope
.