elasticsearch-js: The latest version v7.0.0-rc.1 does not build

🐛 Bug Report

The latest version v7.0.0-rc.1 does not build

To Reproduce

Steps to reproduce the behavior: Include the module by running the following command npm install @elastic/elasticsearch --save

Expected behavior

Should build without any errors

However i get the following error `> tsc

node_modules/@elastic/elasticsearch/lib/Connection.d.ts:77:3 - error TS1165: A computed property name in an ambient context must refer to an expression whose type is a literal type or a ‘unique symbol’ type.

77 [inspect.custom](object: any, options: InspectOptions): string; ~~~~~~~~~~~~~~~~ `

Your Environment

Other observations

Including @types/elasticsearch would solve the issue however the types support is only for version 5.0.23

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Hello! Did you installed @types/node?

npm i @types/node --save-dev

It was obvious – I was just working backwards when it was still not working.

In any case, the issue was that I also had tsc installed globally and that was an older version (3.1.3). This could be identified when comparing your line ./node_modules/.bin/tsc index.ts instead of tsc index.ts.

Thanks!