Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript ES2019 Error #652

Open
Winteriver opened this issue Jun 29, 2020 · 1 comment
Open

Typescript ES2019 Error #652

Winteriver opened this issue Jun 29, 2020 · 1 comment

Comments

@Winteriver
Copy link

Gulp version:
CLI version: 2.2.0, Local version: 4.0.2

When using "es2019" as lib in compilerOptions it says:
error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'esnext.array', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.bigint'.

But I need it for functions like map, or flapMap, otherwise (es2018 and below) I get:
error TS2339: Property 'flatMap' does not exist on type (...)

The script execution works and the compiler in VS Studio code has no errors.

@Winteriver
Copy link
Author

Okay, Error is gone when using "esnext" instead of "es2019".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant