question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeScript: target is es2018

See original GitHub issue

HonKit 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:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
azucommented, Jun 29, 2020

@harshilparmar YES! Welcome to PR!

0reactions
azucommented, Jun 30, 2020

This is fixed in #71

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found