Allow import.meta.url
when module
is node16
or node18
#61441
Labels
Milestone
import.meta.url
when module
is node16
or node18
#61441
🔎 Search Terms
import.meta' meta-property '--module' option 'es2020' 'es2022' 'esnext' 'system' 'node12' 'nodenext'
🕗 Version & Regression Information
module
option⏯ Playground Link
https://www.typescriptlang.org/play/?moduleResolution=99&target=99&module=100&ts=5.8.2#code/MYewdgziA2CmB00QHMAUBLAtgBxAJwBd5NYCBDeAVz2gEoBuAWACgg
💻 Code
🙁 Actual behavior
When setting the
module
option tonode16
ornode18
you get the error message:🙂 Expected behavior
node16
andnode18
should be supported.import.meta.url
is available in those versions of Node and it makes no sense that this setting would say that it's available in Node 12 and the latest version of Node, but not the intermediate versions of Node.Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: