question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"export 'connectSortBy' was not found in 'instantsearch.js/es/connectors'

See original GitHub issue
import {Component, forwardRef, Inject, Input, OnInit} from '@angular/core';
import {BaseWidget, NgAisInstantSearch} from 'angular-instantsearch';
import {connectSortBy} from 'instantsearch.js/es/connectors';

@Component({
    selector: 'app-ai-mdb-short-by',
    templateUrl: './ai-mdb-short-by.component.html',
    styleUrls: ['./ai-mdb-short-by.component.scss']
})
export class AiMdbShortByComponent extends BaseWidget implements OnInit {
  public state: {
    options: object[];
    currentRefinement: string;
    hasNoResults: boolean;
    refine: any;
    widgetParams: object;
  };

    constructor(
        @Inject(forwardRef(() => NgAisInstantSearch)) public instantSearchParent,
    ) {
        super('SortBy');
    }

    ngOnInit() {
        this.createWidget(connectSortBy, {
            // instance options
            items: [
                {label: 'Featured', value: 'instant_search'},
            ],
        });
        super.ngOnInit();
    }
}
ERROR in ./src/app/pages/admin/_admin-shared/admin-class/ai-mdb-short-by/ai-mdb-short-by.component.ts 11:26-39
"export 'connectSortBy' was not found in 'instantsearch.js/es/connectors'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Haroenvcommented, Dec 21, 2019

Have you passed showMore: true, as well as the limit @Karman40 ?

0reactions
Karman40commented, Dec 21, 2019

Thanks , I don’t know why I’m so careless today 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export 'createInstantSearch' was not found in 'vue-instantsearch'
Heloo guys, I have a problem regarding this error, when using Version 3.0.3. Currently I have no errors using version “vue-instantsearch”: ...
Read more >
@types/react-instantsearch-native - npm
TypeScript definitions for react-instantsearch-native. ... from 'react-instantsearch-core'; export { connectSortBy } from ...
Read more >
Why is Vue algolia instant search producing"Unexpected ...
Unexpected token 'export' Open: internal/modules/cjs/loader.js Unable to locate file source. I'm fairly certain this is due to running my vue ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found