Closed BlasterM2A closed 2 days ago
On that link you listed, it has the target property in a few examples, but it doesn't say a single word anywhere about it. Moreover on that page it has a table listing the valid compiler options and target isn't on that list.
On that link you listed, it has the target property in a few examples, but it doesn't say a single word anywhere about it. Moreover on that page it has a table listing the valid compiler options and target isn't on that list.
The reference to "target" and "esnext" is by no means residual in that documentation, and the use of examples that aren't reproducible or banal causes confusion. The comment "For a complete list of compiler options and how they affect TypeScript, see the TypeScript Manual" also suggests that other properties are supported.
The comment "For a complete list of compiler options and how they affect TypeScript, see the TypeScript Manual" also suggests that other properties are supported.
I can see how that comment can be confusing, but I believe it is essentially saying TypeScript supports more options, but Deno isn't exposing all those options in the version it ships.
The comment "For a complete list of compiler options and how they affect TypeScript, see the TypeScript Manual" also suggests that other properties are supported.
I can see how that comment can be confusing, but I believe it is essentially saying TypeScript supports more options, but Deno isn't exposing all those options in the version it ships.
Got it. I was having issues with a third-party library related to the use of import.meta, which led me to review the documentation and try to reproduce the examples.
I'm closing this ticket since the reported issue isn't a Deno CLI bug.
Version: Deno 2.0.5
According to the doc Configuring TypeScript, you can define the target property in compilerOptions, but neither the IDE nor Deno CLI recognize it as valid.
IDE reports a warning indicating that it is not a valid property (since it is not defined in the JSON schema).
JetBrains WebStorm
VSCode
Deno CLI says it's not supported and will be ignored
Note: deno.json config used in previous cases.