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

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

Open
hgtucel opened this issue Nov 18, 2024 · 7 comments

Comments

@hgtucel
Copy link

hgtucel commented Nov 18, 2024

../../../.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
Copy link

luca-biagetti commented Nov 18, 2024

+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.

@toshiossada
Copy link

I got same error

@andy-tmpt-me
Copy link

Looks like this is the commit that caused the issue: algolia/api-clients-automation#4108

@kociubin
Copy link

kociubin commented Dec 1, 2024

I'm experiencing the same issue. 1.1.0 is unusable.

@angwarati
Copy link

Getting the same error. @luca-biagetti work around seems to be working.

@mikejones3
Copy link

@thawahsaw
Copy link

I have been having this issue since November. I did override dependencies but the error didn't go away. I go to algolia_cleint_estensions.dart and literally commented out maxFacetHits from AlgolisSearchStateExt class. The error goes away for now.. but Im not sure what kind of error I will get in the near future. In November, I resolved this issue by downgrading the package. But Im required to update other packages so I had to upgrade this package.. I get stuck at this error.

Hope the team would resolve this issues as soon as possible.

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

8 participants