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

suppress experimental warnings on node 18+ #298

Merged
merged 1 commit into from
Dec 30, 2022

Conversation

tmont
Copy link
Contributor

@tmont tmont commented Jun 12, 2022

Suppresses this warning that occurs every time you use node-dev:

(node:1283714) ExperimentalWarning: Custom ESM Loaders is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

Also I'm pretty sure the --no-warnings option does nothing, since the function that suppresses the warnings is always called. Not sure if that's intentional or not. And the existing unit test for the experimental warning suppression passes even if you omit that flag from the spawn() call.


I'm not sure which version of Node actually introduced this warning, but I noticed it when upgrading from Node 16 to 18.

fixes #293

@MoKhajavi75
Copy link

got this warning in v16.17.0

@reslear
Copy link

reslear commented Dec 20, 2022

is complete?

@pateketrueke
Copy link

I confirmed this works on node 18, please approve and merge it! 🍻

@reslear
Copy link

reslear commented Dec 30, 2022

@bjornstar see please )

@bjornstar bjornstar merged commit a696359 into fgnass:master Dec 30, 2022
@bjornstar
Copy link
Collaborator

Published in v8.0.0

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.

Suppress experimental warnings with Node v18
5 participants