Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Error: export 'toValue' (imported as 'toValue') was not found in 'vue-demi'#1598

Discussion options

Am trying to upgrade a legacy project, and I am hitting the following error:

export 'toValue' (imported as 'toValue') was not found in 'vue-demi'

I cannot findtoValue anywhere within thevue-demi project, so why is VueFire trying to import it?

You must be logged in to vote
Answered by posvaJan 22, 2025

You need to update your Vue version: 2.7 or 3.3

Replies: 1 comment 8 replies

Comment options

You need to update your Vue version: 2.7 or 3.3

You must be logged in to vote
8 replies
@posva
Comment options

Can you test it out if it works:vueuse/vue-demi#272. Clone the branch, runnpm pack and install the generated tgz in your project

@roberttolton
Comment options

Will test tomorrow and report back ASAP, thanks!

@roberttolton
Comment options

So I cloned thevue-demi feature branch, installed and then rannpm pack.
I took that file, dropped it inside my project's root folder and then rannpm install vue-demi-0.14.10.tgz.
Mypackage.json then had the following entry:"vue-demi": "file:vue-demi-0.14.10.tgz"

That didn't work, so I tried deletingnode_modules andpackage-lock.json and rannpm install.
Unfortunately, this didn't work either and it's still claiming the export does not exist:

ERROR in ./node_modules/vuefire/dist/index.mjs 1184:26-33export 'toValue' (imported as 'toValue') was not found in 'vue-demi' (possible exports: EffectScope, Fragment, KeepAlive, Suspense, Teleport, Transition, TransitionGroup, Vue, Vue2, computed, createApp, customRef, defineAsyncComponent, defineComponent, del, effectScope, getCurrentInstance, getCurrentScope, h, hasInjectionContext, inject, install, isProxy, isReactive, isReadonly, isRef, isShallow, isVue2, isVue3, markRaw, mergeDefaults, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, provide, proxyRefs, reactive, readonly, ref, set, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useListeners, useSlots, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect)

Did I install it correctly?

@posva
Comment options

Seems correct

@roberttolton
Comment options

Then I've no idea why it doesn't find the export..

Answer selected byposva
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
2 participants
@roberttolton@posva
Converted from issue

This discussion was converted from issue #1597 on January 22, 2025 08:30.


[8]ページ先頭

©2009-2025 Movatter.jp