Angular InstantSearch Compile Error: No module 'algoliasearch-helper' implicitly has an 'any' type

Hi there

I am following the official Getting Started Angular InstantSearch documentation
(https://community.algolia.com/angular-instantsearch/getting-started.html)

I have performed the following steps

  1. npm install -g @angular/cli@6
  2. ng new example-angular-instantsearch
  3. cd example-angular-instantsearch
  4. npm install --save angular-instantsearch
  5. imported NgAisModule from ‘angular-instantsearch’ as per instructions
  6. loaded the companion CSS files as per instructions
  7. finally run ng serve

ERROR

ERROR in node_modules/angular-instantsearch/instantsearch/instantsearch.d.ts(2,37):
error TS7016: Could not find a declaration file for module ‘algoliasearch-helper’ implicitly has an ‘any’ type.
Try npm install @types/algoliasearch-helper if it exists or add a new declaration (.d.ts) file containing `declare module ‘algoliasearch-helper’


Versions

Angular CLI: 6.2.6
Node: 8.11.2
OS: win32 x64
Angular: 6.1.10
Typescript:2.9.2
Angular-instantsearch: 2.1.0

Please Kindly advise.
Thank you, much appreciated.

Hi @byron, I’ve reproduced the steps provided but I didn’t manage to reproduce the error. Is there something missing? If not could you please setup an example (like a repo), it will help a lot to better understand the issue.

Thanks!

I eventually managed to fix it after numerous attempts.
The solution is to run

npm install

after installing instantsearch.
That installs the missing helper.

PS. could this issue perhaps have something to do with Windows dev environment?