angular-instantsearch: RefinementList extended widget - 'X' is not a retrieved facet.
Hi,
I’am trying to extend RefinementList
widget as documented here : https://www.algolia.com/doc/api-reference/widgets/refinement-list/angular/#full-example.
I getting Error: X is not a retrieved facet.
, Although it works properly with the built-in widget.
So
<ais-refinement-list attribute="X"></ais-refinement-list>
-> Works
But the following does not work.
ngOnInit(): void {
this.createWidget(connectRefinementList, {
// instance options
attribute: 'X',
});
super.ngOnInit();
}
Be noted that I Added X
for Attributes for faceting in my dashboard and make it searchable.
My package.json
:
...
"@angular/core": "^9.0.0",
"algoliasearch": "^3.35.1",
"angular-instantsearch": "^2.3.0",
"instantsearch.css": "^7.4.2",
"instantsearch.js": "^4.7.0",
"@types/algoliasearch": "^3.34.10",
...
What’s wrong in my code?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (7 by maintainers)
It fixed after using the latest version of
instantsearch.js@^4.7.0
😃)Is that an actual error, or just a warning @waseem-isaac-BBN? If it’s a warning, and the app actually works, that’s a known issue for these versions, which has been fixed in later versions and you can safely ignore
This here is a more specific example which uses a connector: https://codesandbox.io/s/github/algolia/doc-code-samples/tree/master/Angular InstantSearch/extending-widgets
Sorry, I got confused with the version numbers, Angular InstantSearch v2 is compatible with InstantSearch v3, not v2