nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.08k stars 624 forks source link

Missing import with feature Search #2536

Closed Florent-Bouisset closed 7 months ago

Florent-Bouisset commented 7 months ago

Environment

MacOS, Chrome

Reproduction

use new experimental feature searchContent()

Describe the bug

Uncaught (in promise) ReferenceError: createError is not defined
    at searchContent

The function createError is used but never imported in the source code: https://github.com/nuxt/content/blob/main/src/runtime/composables/search.ts

https://github.com/nuxt/content/issues/2404 was a similar issue and was closed after the merge of https://github.com/nuxt/content/pull/2412
but this PR didn't add import for the function createError.

Additional context

No response

Logs

No response