Definitelytyped: @types/ws/index.d.ts(158,18): error TS2304: Cannot find name 'Set'.

Created on 18 Aug 2017  路  1Comment  路  Source: DefinitelyTyped/DefinitelyTyped

  • [ ] I tried using the @types/ws package and had problems.
  • [ ] I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript
  • [ ] [Mention](https://github.com/blog/821-mention-somebody-they-re-notified) the authors (see Definitions by: in index.d.ts) so they can respond.

    • Authors: @andy-ms @sean-krail @elithrar @Manusan42 @mailto1587 @lpinca @jnordberg @3n-mb

@types/ws/index.d.ts(158,18): error TS2304: Cannot find name 'Set'.

I get this issue when trying to build

Most helpful comment

I've solved the issue.

The default target in my tsc compiler options was es5. I set this to es6 and it works fine now

>All comments

I've solved the issue.

The default target in my tsc compiler options was es5. I set this to es6 and it works fine now

Was this page helpful?
0 / 5 - 0 ratings