NuxtN
Nuxt6mo ago
6 replies
rich

Error "...node_modules/vue/index.mjs' does not provide an export named 'default'" with latest

I'm currently getting a error on generate (which I have had for a few months now but always have to downgrade to fix it so I'm curious to know if anyone can help me resolve this.

@nuxtjs/sanity@1.14.1
@pinia/nuxt@0.11.2
─ nuxt@3.17.7
─ pinia@3.0.3
─ unhead@2.0.12

    import require$$0, { hasInjectionContext, inject, getCurrentInstance, defineComponent, createElementBlock, shallowRef, provide, cloneVNode, h, defineAsyncComponent, computed, unref, shallowReactive, ref, Suspense, Fragment, createApp, toRef, onErrorCaptured, onServerPrefetch, createVNode, resolveDynamicComponent, reactive, effectScope, isReadonly, isRef, isShallow, isReactive, toRaw, mergeProps, watch, withCtx, getCurrentScope, nextTick, useSSRContext } from 'node_modules/vue/index.mjs';
    ^^^^^^^^^^
    SyntaxError: The requested module 'node_modules/vue/index.mjs' does not provide an export named 'default'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:182:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:266:5)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:644:26)
    at async .nuxt/prerender/chunks/_/renderer.mjs:113:24
    at async Object.render (.nuxt/prerender/chunks/_/renderer.mjs:292:20)
    at async Object.handler (.nuxt/prerender/chunks/nitro/nitro.mjs:1236:22)
    at async Object.handler (node_modules/h3/dist/index.mjs:2003:19)
...etc
Was this page helpful?