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 with Node v18 #293

Closed
tmont opened this issue May 22, 2022 · 1 comment · Fixed by #298
Closed

Suppress experimental warnings with Node v18 #293

tmont opened this issue May 22, 2022 · 1 comment · Fixed by #298

Comments

@tmont
Copy link
Contributor

tmont commented May 22, 2022

$ cat test.js
console.log('hello world');

$ node_modules/.bin/node-dev test.js
(node:2550900) 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)
hello world

I saw that file conveniently called suppress-experimental-warnings.js but either it doesn't work or it doesn't work with Node v18.

It looks like something internal changed at some point in the way warnings are emitted according to this comment: nodejs/node#30810 (comment)

tmont added a commit to tmont/node-dev that referenced this issue Jun 12, 2022
tmont added a commit to tmont/node-dev that referenced this issue Jun 12, 2022
tmont added a commit to tmont/node-dev that referenced this issue Jun 12, 2022
@MoKhajavi75
Copy link

any updates?

cc @fgnass

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 a pull request may close this issue.

2 participants