TypeScript: target is es2018
See original GitHub issueHonKit support Node.js LTS - Node.js 10+.
So, we need to change tsconfig.json
’s target to es2018
or es2017
.
(Node.js 10 does not suppor ES2019)
https://github.com/honkit/honkit/blob/b9267fcd5888e8c25750413f7a36a43a4481c5be/tsconfig.json#L3
https://node.green/#ES2017 https://node.green/#ES2018
It is part of TypeScript migration #24 .
📝 Currently, HonKit code does not use ES2019 features and it is not problem. Also, TypeScript only transpile syntax.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
How do I target ES2018 in TypeScript? - Stack Overflow
target roughly means the JavaScript version of the generated output files. lib means the features you will use in TypeScript. For example, you ......
Read more >TSConfig Option: lib - TypeScript
TypeScript also includes APIs for newer JS features matching the target you specify; ... ES2018, Additional APIs available in ES2018 - async iterables, ......
Read more >Support for --target ES2018 #20463 - microsoft/TypeScript
So when targeting Node.js 10.x I would like to use e.g. native async iterators. Using tsc --target es2018 --lib es2018 file.ts doesn' ...
Read more >Which version of EcmaScript should I use in the TypeScript ...
TypeScript allows converting most of the ES next features to ES3, ES5, ES6, ES2016, ES2017. Of course, you can also target ES Next....
Read more >TSConfig Reference - TypeScript
TypeScript also includes APIs for newer JS features matching the target you ... ES2018.RegExp. ESNext.AsyncIterable. ESNext.Array. ESNext.Intl. ESNext.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@harshilparmar YES! Welcome to PR!
This is fixed in #71