Typescript elasticsearch 7.X - not compiling

I am using "@elastic/elasticsearch": "^7.1.0", when I access the Client form the this library, I get compile errors when I compile and launch in Angular 7

ERROR in ./node_modules/@elastic/elasticsearch/lib/Connection.js
Module not found: Error: Can't resolve 'http' in 'D:\XXX\XXXX\rXXXapp\node_modules@elastic\elasticsearch\lib'ERROR in ./node_modules/@elastic/elasticsearch/lib/Connection.js

3 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.