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

Multiple Identical ExperimentalWarnings #31909

Closed
LJNeon opened this issue Feb 22, 2020 · 4 comments
Closed

Multiple Identical ExperimentalWarnings #31909

LJNeon opened this issue Feb 22, 2020 · 4 comments

Comments

@LJNeon
Copy link

LJNeon commented Feb 22, 2020

  • Version: v13.9.0
  • Platform: Ubuntu 18.04
  • Subsystem: N/A

What is the expected behavior?

Experimental warnings will only be logged once.

What do you see instead?

The same warning is logged multiple times to console.
image

@LJNeon
Copy link
Author

LJNeon commented Feb 22, 2020

The third warning is logged by process.on("warning"), but the experimental ESM module loader warning isn't emitting that event so I presume it's unintentional as well.

@jasnell
Copy link
Member

jasnell commented Feb 22, 2020

It definitely should only be output to the console once. The process.on('warning') is working as expected. The warning is emitted using process.emitWarning(), which always forwards all warnings to process.on('warning') in addition to the default behavior of printing to the console.

@aduh95
Copy link
Contributor

aduh95 commented Feb 22, 2020

These warnings are meant to go away (#31845), if this is issue is specific to this very warning, it's probably not worth spending time investigate it.

@juanarbol
Copy link
Member

As long as #31845 is landed now, I think this issue could be closed.

@jasnell jasnell closed this as completed Mar 13, 2020
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

No branches or pull requests

4 participants