We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Object ES5 Error
https://www.typescriptlang.org/play/?target=11&module=1&ts=5.9.0-dev.20250225#code/HYQwtgpgzgDiDGEAEANJBvJ8A2IpSQHkAjAKwngBcMBfJGoA
namespace X { class Object {} }
Target CommonJS and some new target, like ES2024.
Class name cannot be 'Object' when targeting ES5 with module CommonJS.
Error mentions ES5 when ES5 is not being targeted.
One of:
This same error happens with Node16 module resolution when module's format is CommonJS.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
🔎 Search Terms
Object ES5 Error
🕗 Version & Regression Information
⏯ Playground Link
https://www.typescriptlang.org/play/?target=11&module=1&ts=5.9.0-dev.20250225#code/HYQwtgpgzgDiDGEAEANJBvJ8A2IpSQHkAjAKwngBcMBfJGoA
💻 Code
Target CommonJS and some new target, like ES2024.
🙁 Actual behavior
Error mentions ES5 when ES5 is not being targeted.
🙂 Expected behavior
One of:
Additional information about the issue
This same error happens with Node16 module resolution when module's format is CommonJS.
The text was updated successfully, but these errors were encountered: