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
Failed to resolve component: ais-instant-search #5
Comments
Hi @bennyzen First can you tell me a bit more about your config ? |
I just setup an all new Nuxt3 instance (@latest) and followed all the steps described here https://nuxt-meilisearch-docs.netlify.app/. My import { defineNuxtConfig } from "nuxt";
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
typescript: {
shim: false,
},
modules: ["nuxt-meilisearch"],
meilisearch: {
hostUrl: "https://example.com",
apiKey:
"w5rj0olA39cfasdasdasdasdassdasdasdasdasd46e1b43d235c967ed38a926beecbc88284f4027a0caa",
instantSearch: { theme: "algolia" }, // default true
// optional
clientOptions: {
placeholderSearch: true, // default
paginationTotalHits: 50, // default
finitePagination: true, // default
primaryKey: undefined, // default
keepZeroFacets: false, // default
},
},
}); Meili is working in production for other projects and is not the problem here. My guess is that something is missing in your instructions. |
@bennyzen What about meilisearch instance ? works well ? can you reach it via api ( postman or curl ? ) |
Tried with Yes, Meili can be reached and works flawlessly using Postman/Insomnia. |
Ok |
A quick fix could be import {
AisInstantSearch,
AisConfigure,
AisHits,
AisSearchBox,
} from 'vue-instantsearch/vue3/es'; until I fix into the lib |
Ok, this works as temporary fix. Thank you. Unfortunately, the above Stackblitz link does not seem to work. |
It was hard to fix I choose to let final user import manually his components. Now it not a bug , it a feature 😉 |
I've followed the provided instructions to the point, but still can't get this module to work with Nuxt3.
My current very basic test-page looks like this:
Is there something crucial missing? Any help would be appreciated.
The text was updated successfully, but these errors were encountered: