When I add pinia to a blank project I get the below error, I have checked and I am running the latest version of all the software (which I suspect might be the issue). Is anyone else having this issue? Any advice to solving it?
The error I am getting is:
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'getCurrentInstance' (imported as 'getCurrentInstance') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'inject' (imported as 'inject') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'toRaw' (imported as 'toRaw') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'watch' (imported as 'watch') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'unref' (imported as 'unref') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'markRaw' (imported as 'markRaw') was not found in 'vue-demi' ()
[INFO] Development server running!
Local: http://localhost:8100
Use Ctrl+C to quit this process
[INFO] Browser window opened to http://localhost:8100!
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'effectScope' (imported as 'effectScope') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'ref' (imported as 'ref') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'isRef' (imported as 'isRef') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'isReactive' (imported as 'isReactive') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'set' (imported as 'set') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'getCurrentScope' (imported as 'getCurrentScope') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'onScopeDispose' (imported as 'onScopeDispose') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'toRefs' (imported as 'toRefs') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'computed' (imported as 'computed') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'nextTick' (imported as 'nextTick') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'reactive' (imported as 'reactive') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'toRef' (imported as 'toRef') was not found in 'vue-demi' ()
[vue-cli-service] error in ../../../node_modules/pinia/dist/pinia.mjs
[vue-cli-service] export 'del' (imported as 'del') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] error in ../../../node_modules/vue-demi/lib/index.mjs
[vue-cli-service] Module not found: Error: Can't resolve '@vue/composition-api/dist/vue-composition-api.mjs' in '/Users/peterb/node_modules/vue-demi/lib'
[vue-cli-service] error in ../../../node_modules/vue-demi/lib/index.mjs
[vue-cli-service] export 'default' (imported as 'Vue') was not found in 'vue' (possible exports: BaseTransition, Comment, EffectScope, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, Transition, TransitionGroup, VueElement, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, compile, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineProps, defineSSRCustomElement, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getTransitionRawChildren, guardReactiveProps, h, handleError, hydrate, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useSSRContext, useSlots, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId)
[vue-cli-service] error in ../../../node_modules/vue-demi/lib/index.mjs
[vue-cli-service] export 'default' (reexported as 'Vue') was not found in 'vue' (possible exports: <same as above>)
ERROR in ../../../node_modules/pinia/dist/pinia.mjs 24:30-48
[vue-cli-service] export 'getCurrentInstance' (imported as 'getCurrentInstance') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 24:54-60
[vue-cli-service] export 'inject' (imported as 'inject') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 594:43-48
[vue-cli-service] export 'toRaw' (imported as 'toRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 787:12-17
[vue-cli-service] export 'watch' (imported as 'watch') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 787:24-29
[vue-cli-service] export 'unref' (imported as 'unref') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 849:27-34
[vue-cli-service] export 'markRaw' (imported as 'markRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 899:35-40
[vue-cli-service] export 'toRaw' (imported as 'toRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 941:8-13
[vue-cli-service] export 'toRaw' (imported as 'toRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 955:18-29
[vue-cli-service] export 'effectScope' (imported as 'effectScope') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 958:34-37
[vue-cli-service] export 'ref' (imported as 'ref') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 962:18-25
[vue-cli-service] export 'markRaw' (imported as 'markRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1033:13-18
[vue-cli-service] export 'isRef' (imported as 'isRef') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1034:13-23
[vue-cli-service] export 'isReactive' (imported as 'isReactive') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1041:16-19
[vue-cli-service] export 'set' (imported as 'set') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1110:21-36
[vue-cli-service] export 'getCurrentScope' (imported as 'getCurrentScope') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1111:8-22
[vue-cli-service] export 'onScopeDispose' (imported as 'onScopeDispose') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1139:13-18
[vue-cli-service] export 'isRef' (imported as 'isRef') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1140:13-23
[vue-cli-service] export 'isReactive' (imported as 'isReactive') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1183:14-19
[vue-cli-service] export 'isRef' (imported as 'isRef') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1193:16-19
[vue-cli-service] export 'set' (imported as 'set') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1202:16-22
[vue-cli-service] export 'toRefs' (imported as 'toRefs') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1202:23-26
[vue-cli-service] export 'ref' (imported as 'ref') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1203:14-20
[vue-cli-service] export 'toRefs' (imported as 'toRefs') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1208:36-43
[vue-cli-service] export 'markRaw' (imported as 'markRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1208:44-52
[vue-cli-service] export 'computed' (imported as 'computed') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1270:24-31
[vue-cli-service] export 'markRaw' (imported as 'markRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1271:30-37
[vue-cli-service] export 'markRaw' (imported as 'markRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1279:12-15
[vue-cli-service] export 'set' (imported as 'set') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1285:21-24
[vue-cli-service] export 'ref' (imported as 'ref') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1315:8-16
[vue-cli-service] export 'nextTick' (imported as 'nextTick') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1388:38-45
[vue-cli-service] export 'markRaw' (imported as 'markRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1403:48-53
[vue-cli-service] export 'watch' (imported as 'watch') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1421:18-26
[vue-cli-service] export 'reactive' (imported as 'reactive') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1424:31-38
[vue-cli-service] export 'markRaw' (imported as 'markRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1435:16-27
[vue-cli-service] export 'effectScope' (imported as 'effectScope') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1441:13-18
[vue-cli-service] export 'isRef' (imported as 'isRef') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1441:50-60
[vue-cli-service] export 'isReactive' (imported as 'isReactive') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1444:16-19
[vue-cli-service] export 'set' (imported as 'set') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1444:41-46
[vue-cli-service] export 'toRef' (imported as 'toRef') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1451:24-29
[vue-cli-service] export 'isRef' (imported as 'isRef') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1463:20-23
[vue-cli-service] export 'set' (imported as 'set') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1482:16-19
[vue-cli-service] export 'set' (imported as 'set') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1506:47-54
[vue-cli-service] export 'markRaw' (imported as 'markRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1516:12-15
[vue-cli-service] export 'set' (imported as 'set') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1523:15-20
[vue-cli-service] export 'toRaw' (imported as 'toRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1543:27-34
[vue-cli-service] export 'markRaw' (imported as 'markRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1561:16-19
[vue-cli-service] export 'set' (imported as 'set') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1561:37-42
[vue-cli-service] export 'toRef' (imported as 'toRef') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1566:20-23
[vue-cli-service] export 'del' (imported as 'del') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1572:37-42
[vue-cli-service] export 'toRef' (imported as 'toRef') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1574:12-20
[vue-cli-service] export 'nextTick' (imported as 'nextTick') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1579:16-19
[vue-cli-service] export 'set' (imported as 'set') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1586:24-32
[vue-cli-service] export 'computed' (imported as 'computed') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1591:16-19
[vue-cli-service] export 'set' (imported as 'set') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1596:20-23
[vue-cli-service] export 'del' (imported as 'del') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1602:20-23
[vue-cli-service] export 'del' (imported as 'del') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1687:32-50
[vue-cli-service] export 'getCurrentInstance' (imported as 'getCurrentInstance') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1692:36-42
[vue-cli-service] export 'inject' (imported as 'inject') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1908:15-21
[vue-cli-service] export 'toRefs' (imported as 'toRefs') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1911:16-21
[vue-cli-service] export 'toRaw' (imported as 'toRaw') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1915:16-21
[vue-cli-service] export 'isRef' (imported as 'isRef') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1915:32-42
[vue-cli-service] export 'isReactive' (imported as 'isReactive') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/pinia/dist/pinia.mjs 1919:20-25
[vue-cli-service] export 'toRef' (imported as 'toRef') was not found in 'vue-demi' (possible exports: Vue, Vue2, install, isVue2, isVue3, version)
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/vue-demi/lib/index.mjs 2:0-81
[vue-cli-service] Module not found: Error: Can't resolve '@vue/composition-api/dist/vue-composition-api.mjs' in '/Users/peterb/node_modules/vue-demi/lib'
[vue-cli-service] @ ../../../node_modules/pinia/dist/pinia.mjs 6:0-217 24:30-48 24:54-60 594:43-48 787:12-17 787:24-29 849:27-34 899:35-40 941:8-13 955:18-29 958:34-37 962:18-25 967:17-23 980:29-35 1033:13-18 1034:13-23 1040:16-22 1041:16-19 1110:21-36 1111:8-22 1139:13-18 1140:13-23 1165:11-17 1177:11-17 1183:14-19 1192:16-22 1193:16-19 1202:16-22 1202:23-26 1203:14-20 1208:36-43 1208:44-52 1214:20-26 1248:52-58 1270:24-31 1271:30-37 1278:12-18 1279:12-15 1285:21-24 1315:8-16 1388:38-45 1403:48-53 1417:8-14 1421:18-26 1424:31-38 1435:16-27 1441:13-18 1441:50-60 1444:16-19 1444:41-46 1451:24-29 1462:20-26 1463:20-23 1481:16-22 1482:16-19 1506:47-54 1514:8-14 1516:12-15 1523:15-20 1543:27-34 1561:16-19 1561:37-42 1566:20-23 1572:37-42 1574:12-20 1579:16-19 1586:24-32 1591:16-19 1596:20-23 1602:20-23 1626:8-14 1687:32-50 1692:36-42 1906:8-14 1908:15-21 1911:16-21 1915:16-21 1915:32-42 1919:20-25
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/vue-demi/lib/index.mjs 5:17-20
[vue-cli-service] export 'default' (imported as 'Vue') was not found in 'vue' (possible exports:
<same as above>)
[vue-cli-service] @ ../../../node_modules/pinia/dist/pinia.mjs 6:0-217 24:30-48 24:54-60 594:43-48 787:12-17 787:24-29 849:27-34 899:35-40 941:8-13 955:18-29 958:34-37 962:18-25 967:17-23 980:29-35 1033:13-18 1034:13-23 1040:16-22 1041:16-19 1110:21-36 1111:8-22 1139:13-18 1140:13-23 1165:11-17 1177:11-17 1183:14-19 1192:16-22 1193:16-19 1202:16-22 1202:23-26 1203:14-20 1208:36-43 1208:44-52 1214:20-26 1248:52-58 1270:24-31 1271:30-37 1278:12-18 1279:12-15 1285:21-24 1315:8-16 1388:38-45 1403:48-53 1417:8-14 1421:18-26 1424:31-38 1435:16-27 1441:13-18 1441:50-60 1444:16-19 1444:41-46 1451:24-29 1462:20-26 1463:20-23 1481:16-22 1482:16-19 1506:47-54 1514:8-14 1516:12-15 1523:15-20 1543:27-34 1561:16-19 1561:37-42 1566:20-23 1572:37-42 1574:12-20 1579:16-19 1586:24-32 1591:16-19 1596:20-23 1602:20-23 1626:8-14 1687:32-50 1692:36-42 1906:8-14 1908:15-21 1911:16-21 1915:16-21 1915:32-42 1919:20-25
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/vue-demi/lib/index.mjs 10:8-11
[vue-cli-service] export 'default' (imported as 'Vue') was not found in 'vue' (possible exports: <same as above>)
[vue-cli-service] @ ../../../node_modules/pinia/dist/pinia.mjs 6:0-217 24:30-48 24:54-60 594:43-48 787:12-17 787:24-29 849:27-34 899:35-40 941:8-13 955:18-29 958:34-37 962:18-25 967:17-23 980:29-35 1033:13-18 1034:13-23 1040:16-22 1041:16-19 1110:21-36 1111:8-22 1139:13-18 1140:13-23 1165:11-17 1177:11-17 1183:14-19 1192:16-22 1193:16-19 1202:16-22 1202:23-26 1203:14-20 1208:36-43 1208:44-52 1214:20-26 1248:52-58 1270:24-31 1271:30-37 1278:12-18 1279:12-15 1285:21-24 1315:8-16 1388:38-45 1403:48-53 1417:8-14 1421:18-26 1424:31-38 1435:16-27 1441:13-18 1441:50-60 1444:16-19 1444:41-46 1451:24-29 1462:20-26 1463:20-23 1481:16-22 1482:16-19 1506:47-54 1514:8-14 1516:12-15 1523:15-20 1543:27-34 1561:16-19 1561:37-42 1566:20-23 1572:37-42 1574:12-20 1579:16-19 1586:24-32 1591:16-19 1596:20-23 1602:20-23 1626:8-14 1687:32-50 1692:36-42 1906:8-14 1908:15-21 1911:16-21 1915:16-21 1915:32-42 1919:20-25
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/vue-demi/lib/index.mjs 14:11-14
[vue-cli-service] export 'default' (imported as 'Vue') was not found in 'vue' (possible exports: <same as above>)
[vue-cli-service] @ ../../../node_modules/pinia/dist/pinia.mjs 6:0-217 24:30-48 24:54-60 594:43-48 787:12-17 787:24-29 849:27-34 899:35-40 941:8-13 955:18-29 958:34-37 962:18-25 967:17-23 980:29-35 1033:13-18 1034:13-23 1040:16-22 1041:16-19 1110:21-36 1111:8-22 1139:13-18 1140:13-23 1165:11-17 1177:11-17 1183:14-19 1192:16-22 1193:16-19 1202:16-22 1202:23-26 1203:14-20 1208:36-43 1208:44-52 1214:20-26 1248:52-58 1270:24-31 1271:30-37 1278:12-18 1279:12-15 1285:21-24 1315:8-16 1388:38-45 1403:48-53 1417:8-14 1421:18-26 1424:31-38 1435:16-27 1441:13-18 1441:50-60 1444:16-19 1444:41-46 1451:24-29 1462:20-26 1463:20-23 1481:16-22 1482:16-19 1506:47-54 1514:8-14 1516:12-15 1523:15-20 1543:27-34 1561:16-19 1561:37-42 1566:20-23 1572:37-42 1574:12-20 1579:16-19 1586:24-32 1591:16-19 1596:20-23 1602:20-23 1626:8-14 1687:32-50 1692:36-42 1906:8-14 1908:15-21 1911:16-21 1915:16-21 1915:32-42 1919:20-25
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/vue-demi/lib/index.mjs 15:14-25
[vue-cli-service] export 'default' (imported as 'Vue') was not found in 'vue' (possible exports: <same as above>)
[vue-cli-service] @ ../../../node_modules/pinia/dist/pinia.mjs 6:0-217 24:30-48 24:54-60 594:43-48 787:12-17 787:24-29 849:27-34 899:35-40 941:8-13 955:18-29 958:34-37 962:18-25 967:17-23 980:29-35 1033:13-18 1034:13-23 1040:16-22 1041:16-19 1110:21-36 1111:8-22 1139:13-18 1140:13-23 1165:11-17 1177:11-17 1183:14-19 1192:16-22 1193:16-19 1202:16-22 1202:23-26 1203:14-20 1208:36-43 1208:44-52 1214:20-26 1248:52-58 1270:24-31 1271:30-37 1278:12-18 1279:12-15 1285:21-24 1315:8-16 1388:38-45 1403:48-53 1417:8-14 1421:18-26 1424:31-38 1435:16-27 1441:13-18 1441:50-60 1444:16-19 1444:41-46 1451:24-29 1462:20-26 1463:20-23 1481:16-22 1482:16-19 1506:47-54 1514:8-14 1516:12-15 1523:15-20 1543:27-34 1561:16-19 1561:37-42 1566:20-23 1572:37-42 1574:12-20 1579:16-19 1586:24-32 1591:16-19 1596:20-23 1602:20-23 1626:8-14 1687:32-50 1692:36-42 1906:8-14 1908:15-21 1911:16-21 1915:16-21 1915:32-42 1919:20-25
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] ERROR in ../../../node_modules/vue-demi/lib/index.mjs 21:0-28:1
[vue-cli-service] export 'default' (reexported as 'Vue') was not found in 'vue' (possible exports: <same as above>)
[vue-cli-service] @ ../../../node_modules/pinia/dist/pinia.mjs 6:0-217 24:30-48 24:54-60 594:43-48 787:12-17 787:24-29 849:27-34 899:35-40 941:8-13 955:18-29 958:34-37 962:18-25 967:17-23 980:29-35 1033:13-18 1034:13-23 1040:16-22 1041:16-19 1110:21-36 1111:8-22 1139:13-18 1140:13-23 1165:11-17 1177:11-17 1183:14-19 1192:16-22 1193:16-19 1202:16-22 1202:23-26 1203:14-20 1208:36-43 1208:44-52 1214:20-26 1248:52-58 1270:24-31 1271:30-37 1278:12-18 1279:12-15 1285:21-24 1315:8-16 1388:38-45 1403:48-53 1417:8-14 1421:18-26 1424:31-38 1435:16-27 1441:13-18 1441:50-60 1444:16-19 1444:41-46 1451:24-29 1462:20-26 1463:20-23 1481:16-22 1482:16-19 1506:47-54 1514:8-14 1516:12-15 1523:15-20 1543:27-34 1561:16-19 1561:37-42 1566:20-23 1572:37-42 1574:12-20 1579:16-19 1586:24-32 1591:16-19 1596:20-23 1602:20-23 1626:8-14 1687:32-50 1692:36-42 1906:8-14 1908:15-21 1911:16-21 1915:16-21 1915:32-42 1919:20-25
[vue-cli-service] @ ./src/main.ts 23:0-36 24:14-25
[vue-cli-service] webpack compiled with 69 errors
[vue-cli-service] No issues found.
I created a new blank project using ionic and vue. I ran that and it worked. I then added pinia to main.ts and the project stopped working:
import { createPinia } from 'pinia';
const pinia = createPinia();
const app = createApp(App)
.use(pinia)
.use(IonicVue)
.use(router);
router.isReady().then(() => {
app.mount('#app');
});
using npm list and npm list -g I got the following:
├── @ionic/storage@3.0.6
├── @ionic/vue-router@6.4.1
├── @ionic/vue@6.4.1
├── @typescript-eslint/eslint-plugin@5.48.0
├── @typescript-eslint/parser@5.48.0
├── eslint-plugin-vue@9.8.0
├── eslint@8.31.0
├── npm@9.2.0
└── pinia@2.0.28
├── @ionic/cli@6.20.6
├── corepack@0.15.3
└── npm@9.2.0