Skip to content

@unhead/schema-org: schemaAutoImports includes non-exported Vue helpers #727

Closed

Description

@raphmarot

Describe the bug

@unhead/schema-org publishes a schemaAutoImports list that includes helpers not exported by @unhead/schema-org/vue.

In our Nuxt 4 app (@nuxtjs/seo -> nuxt-schema-org), this causes production build failures because Nuxt auto-import generation includes names like defineDataset / defineMusicAlbum / defineMusicGroup / defineMusicPlaylist / defineMusicRecording, but those symbols are missing from dist/vue.mjs exports.

Reproduction

Minimal dependency chain:

Then run Nuxt build (nuxt build), e.g. in Docker.

Actual behavior

Build fails with missing export errors, e.g.:

  • \"defineDataset\" is not exported by \"@unhead/schema-org/dist/vue.mjs\"
  • \"defineMusicAlbum\" is not exported by \"@unhead/schema-org/dist/vue.mjs\"

Expected behavior

Either:

  1. schemaAutoImports only lists helpers that are actually exported by @unhead/schema-org/vue, or
  2. the missing helpers are exported from @unhead/schema-org/vue.

Evidence

In 2.1.13, schemaAutoImports contains these entries:

  • defineDataset
  • defineMusicAlbum
  • defineMusicGroup
  • defineMusicPlaylist
  • defineMusicRecording

But dist/vue.mjs export list does not include them.

Notes

Downgrading @nuxtjs/seo alone (from 5.1.0 to 5.0.2) does not change outcome because the transitive chain can still resolve to [email protected] + @unhead/[email protected].

Thanks for checking.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions