question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No matching export in "node_modules/vue-demi/lib/index.mjs" for import "effectScope"

See original GitHub issue

i 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:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
wobsorianocommented, Aug 27, 2021

Getting this with Nuxt and @nuxtjs/composition-api 0.27.0

Screen Shot 2021-08-27 at 6 16 23 PM
3reactions
antfucommented, Aug 18, 2021

@vue/composition-api v1.1 implemented effectScope.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found