nuxt-modules / algolia

🔎 Algolia module for Nuxt
https://algolia.nuxtjs.org/
MIT License
185 stars 32 forks source link

Vue Instantsearch components import error #193

Closed gagagast closed 4 months ago

gagagast commented 4 months ago

If I follow the documentation for setting up Vue Instantsearch, I always come to the same dead end.

<script setup>

import { AisInstantSearch, AisSearchBox, AisHits } from "vue-instantsearch/vue3/es";

const indexName = "my_index_name";
const algolia = useAlgoliaRef();
</script>

<template>
  <div>
      <ais-instant-search :indexName="indexName" :searchClient="algolia">
        <ais-search-box />
        <ais-hits />
      </ais-instant-search>
  </div>
</template>

Is there a nuxt configuration I can add to avoid this import problem?

The requested module '/*********/node_modules/.pnpm/algoliasearch-helper@3.16.3_algoliasearch@4.22.1/node_modules/algoliasearch-helper/index.js?v=6304645f' does not provide an export named 'default'

Has anyone experienced this before?

Version

@nuxtjs/algolia: 1.10.1 nuxt: 3.10.3

Thx