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
- node version: 8
- @elastic/elasticsearch version: >=7.0.0
- os: Mac
- typescript: 3.4.1
- tslint: 5.14.0
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
- Fix #803 — committed to elastic/elasticsearch-js by delvedor 5 years ago
- Fix #803 (#846) — committed to elastic/elasticsearch-js by delvedor 5 years ago
- Fix #803 (#846) — committed to elastic/elasticsearch-js by delvedor 5 years ago
- Fix #803 (#846) — committed to elastic/elasticsearch-js by delvedor 5 years ago
Hello! Did you installed
@types/node
?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 oftsc index.ts
.Thanks!