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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? # 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:
No branches or pull requests
π 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: