Skip to content

Conversation

@ST4RKJR
Copy link
Owner

@ST4RKJR ST4RKJR commented Dec 4, 2025

This PR improves the error message for ERR_AMBIGUOUS_MODULE_SYNTAX by dynamically identifying the CommonJS global that caused the ambiguity, instead of hardcoding 'require()'.

Fixes nodejs#60322

Dynamically identify the CommonJS global that caused the ambiguity.
@ST4RKJR ST4RKJR merged commit 289471d into main Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve the ERR_AMBIGUOUS_MODULE_SYNTAX error message

2 participants