Skip to content
New issue

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

module: improve error message for cjs code in an esm module #53152

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DanKaplanSES
Copy link
Contributor

Fixes: #40544

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/loaders

Sorry, something went wrong.

@nodejs-github-bot nodejs-github-bot added esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. labels May 25, 2024
@GeoffreyBooth
Copy link
Member

Can you please show the before and after?

@DanKaplanSES
Copy link
Contributor Author

Can you please show the before and after?

Sorry, do you mean you want to see a screenshot of this printed on the console?

@GeoffreyBooth
Copy link
Member

Please provide example code that triggers the error. Copy/paste the error that results from current Node and on your branch.

@DanKaplanSES
Copy link
Contributor Author

@GeoffreyBooth Thanks for clarifying. It may take me a few days, but I'll do that soon.

@aduh95
Copy link
Contributor

aduh95 commented Jun 13, 2024

Can you please address the failure in es-module/test-esm-undefined-cjs-global-like-variables?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error message for replacing require usage with dynamic import
4 participants