Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Could not load virtual:#sitemap/global-sources.mjs (imported by node_modules/@nuxtjs/sitemap/dist/runtime/nitro/sitemap/urlset/sources.mjs): Converting circular structure to JSON --> starting at object with constructor 'Array' --- index 4 closes the circle #285

Closed
mir1198yusuf opened this issue Jun 11, 2024 · 1 comment

Comments

@mir1198yusuf
Copy link

mir1198yusuf commented Jun 11, 2024

Hello, I am getting this error after adding @nuxtjs/sitemap in nuxt.config.ts.
Version of @nuxtjs/sitemap = ^5.1.5.

export default defineNuxtConfig({
...
    sitemap: {
        urls: generateSitemap,
    },
...
})

and generateSitemap async function returns array of objects for sitemap.

@harlan-zw
Copy link
Collaborator

harlan-zw commented Jun 24, 2024

Can you post a sample of the data output? I don't think it's outputting the expected data.

A reproduction would be ideal though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants