Skip to content

Nuxt v5: xyz is not exported by "#imports" #3770

@tobiasdiez

Description

@tobiasdiez

With nuxt v5 / nitro v3, #imports is no longer created by default resulting in build errors of the type:

[MISSING_EXPORT] Error: "useRuntimeConfig" is not exported by "#imports".
   ╭─[ node_modules/.pnpm/nuxt-auth-utils@0.5.29_argon2@0.44.0_magicast@0.5.2/node_modules/nuxt-auth-utils/dist/runtime/server/lib/oauth/apple.js:5:10 ]
   │
 5 │ import { useRuntimeConfig } from "#imports";
   │          ────────┬───────  
   │                  ╰───────── Missing export

See also nuxt/nuxt#34282

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions