Instantsearch is not a function error

Hello Everyone,

I am facing a strange problem while trying to get instantsearch.js to work on my angular 5 project. No matter what I try I keep getting this error

AppComponent.html:1 ERROR TypeError: instantsearch is not a function
at SearchUiComponent.ngOnInit (search-ui.component.ts:22)
at checkAndUpdateDirectiveInline (core.js:12362)
at checkAndUpdateNodeInline (core.js:13886)
at checkAndUpdateNode (core.js:13829)

and here is my import code

import * as instantsearch from ‘instantsearch.js’

Any help is highly appreciated. Thanks!

Hello @msprabhakara,

There is a new InstantSearch library for Angular, can you try to use it ? The guide to uses InstatnSearch.js inside in an Angular application will be soon deprecated.

Cheers, Maxime.