algolia / algoliasearch-helper-flutter

⚡️ Building block to create instant-search applications with Flutter
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/flutter/
Other
23 stars 15 forks source link

Error: No named parameter with the name 'maxFacetHits'. maxFacetHits: maxFacetHits #151

Open hgtucel opened 3 hours ago

hgtucel commented 3 hours ago

../../../.pub-cache/hosted/pub.dev/algolia_helper_flutter-1.1.0/lib/src/service/algolia_client_extensions.dart:41:7: Error: No named parameter with the name 'maxFacetHits'. maxFacetHits: maxFacetHits, ^^^^^^^^^^^^ ../../../.pub-cache/hosted/pub.dev/algolia_client_search-1.27.2/lib/src/model/search_for_hits.dart:21:9: Context: Found this candidate, but the arguments don't match. const SearchForHits({ ^^^^^^^^^^^^^

I get an error and the project does not run.

OS: Android,iOS Library Version: 1.1.0 Flutter sdk: ^3.5.1

luca-biagetti commented 3 hours ago

+1

@hgtucel, a quick workaround could be to downgrade all the algolia-related dependencies of algoliasearch-helper-flutter to the previous version. This can be done directly inside your pubspec.yaml:

dependency_overrides:
  algolia_client_core: 1.27.1
  algolia_client_insights: 1.27.1
  algolia_client_search: 1.27.1
  algoliasearch: 1.27.1

Hope this helps in the meantime.