Не удается использовать клиент elasticsearch 7.15.0 в Angular10

#angular #elasticsearch #elasticsearch-client

#угловой #эластичный поиск #elasticsearch-клиент

Вопрос:

Я использую Angular10 и «@elastic/elasticsearch»: «^7.15.0» и получаю следующие ошибки зависимостей,

 ERROR in ./node_modules/@elastic/elasticsearch/lib/Connection.js Module not found: Error: Can't resolve 'http' in '/home/oaboamer/projects/pricetracer-ui-latest/pricetracer-ui/node_modules/@elastic/elasticsearch/lib'  ERROR in ./node_modules/hpagent/index.js Module not found: Error: Can't resolve 'http' in '/home/oaboamer/projects/pricetracer-ui-latest/pricetracer-ui/node_modules/hpagent'  ERROR in ./node_modules/@elastic/elasticsearch/lib/Connection.js Module not found: Error: Can't resolve 'https' in '/home/oaboamer/projects/pricetracer-ui-latest/pricetracer-ui/node_modules/@elastic/elasticsearch/lib'  ERROR in ./node_modules/hpagent/index.js Module not found: Error: Can't resolve 'https' in '/home/oaboamer/projects/pricetracer-ui-latest/pricetracer-ui/node_modules/hpagent'  ERROR in ./node_modules/@elastic/elasticsearch/lib/Transport.js Module not found: Error: Can't resolve 'os' in '/home/oaboamer/projects/pricetracer-ui-latest/pricetracer-ui/node_modules/@elastic/elasticsearch/lib'  ERROR in ./node_modules/@elastic/elasticsearch/lib/Helpers.js Module not found: Error: Can't resolve 'stream' in '/home/oaboamer/projects/pricetracer-ui-latest/pricetracer-ui/node_modules/@elastic/elasticsearch/lib'  ERROR in ./node_modules/@elastic/elasticsearch/lib/Connection.js Module not found: Error: Can't resolve 'stream' in '/home/oaboamer/projects/pricetracer-ui-latest/pricetracer-ui/node_modules/@elastic/elasticsearch/lib'  ERROR in ./node_modules/@elastic/elasticsearch/lib/Transport.js Module not found: Error: Can't resolve 'zlib' in '/home/oaboamer/projects/pricetracer-ui-latest/pricetracer-ui/node_modules/@elastic/elasticsearch/lib'  

….

Вот как я его импортирую

 import {Client} from '@elastic/elasticsearch'  

Инициировать подключение

 private client: Client = new Client({  node: 'https://node_url:9243',  auth: {  username: 'test',  password: '1234'  } })  

Есть какие-нибудь идеи ?