meilisearch / meilisearch-vue

https://www.meilisearch.com/
MIT License
154 stars 13 forks source link

CDN vue-instantsearch plugin does not have the `install` function #126

Closed amit-ksh closed 5 months ago

amit-ksh commented 1 year ago

Description VueInstantSearch for Vue3 does not behave as a Vue plugin since it is not a function or has an install function. For making, it works properly, additional steps are to be taken as mentioned in the quick start code

Sample Code 1) Go to https://codepen.io/amit-ksh/pen/jOvMEEw 1) See the warnings in the console

Expected behavior Plugin should be a function or have an install function

Current behavior Not behaves as a Vue plugin

Environment:

bidoubiwa commented 1 year ago

Thanks @amit-ksh, it definitely should be updated!

kantum commented 7 months ago

Adding .searchClient to instantMeiliSearch() fixes the issue, made a PR.