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

To use meilisearch-vue in a demo project #3

Closed
anborg opened this issue Aug 26, 2020 · 3 comments
Closed

To use meilisearch-vue in a demo project #3

anborg opened this issue Aug 26, 2020 · 3 comments

Comments

@anborg
Copy link

anborg commented Aug 26, 2020

Hi

I tried to use meilisearch-vue in a demo project

https://github.com/anborg/vue3-demo/blob/master/src/components/MeiliSearch.vue

However, the search box is not visible. Perhaps I'm missing something? Help is much appreciated.

image

The meilisearch component was imported to App.vue.
image

@bidoubiwa
Copy link
Contributor

bidoubiwa commented Aug 27, 2020

Hello !

I tried running your example but the following error was thrown:

This dependency was not found:

* @meilisearch/instant-meilisearch in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/MeiliSearch.vue?vue&type=script&lang=js

To install it, you can run: npm install --save @meilisearch/instant-meilisearch

The other problem is that instantMeiliSearch is a default export so you should import it like this:

import instantMeiliSearch from '@meilisearch/instant-meilisearch';

After all this, It indeed does not work :( .
It seems that vue-instantsearch - on which we depend - is not compatible with vue 3 as they use slots.

Consider making an issue on their repository! https://github.com/algolia/vue-instantsearch

@anborg
Copy link
Author

anborg commented Sep 1, 2020

Thank you for trying.

Is there a way to "undepend" on vue-instantsearch -- e.g removing that 'instant' functionality in melisearch-vue for a vue3 branch?

@bidoubiwa
Copy link
Contributor

Unfortunately no, we heavely depend on it. We are a wrapper arround that library. Could you maybe open an issue on their repository to ask for a working exemple without slots because of vue 3 ?

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