-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Deprecation warning since Node 14.5.0
#2460
Comments
I don't know if that can be of any help, but this is the full stacktrace:
|
I managed to silence the warning by adding this code at the top of my gulpfile.js, before the first {
const { emitWarning } = process;
process.emitWarning =
(warning, type, code, ...extraArgs) =>
code !== 'DEP0097' && emitWarning(warning, type, code, ...extraArgs);
} The root of the problem is that gulp uses the domain module in one of its transitive dependencies (async-done). └─┬ gulp@4.0.2 ├─┬ glob-watcher@5.0.3 │ └── async-done@1.3.2 └─┬ undertaker@1.2.1 └─┬ bach@1.2.0 ├── async-done@1.3.2 deduped └─┬ async-settle@1.0.0 └── async-done@1.3.2 deduped The domain module has been pending deprecation for years, but no equally usable alternative exists yet, which is a shame. Not sure why Node.js started to emit the warning in version 14.5.0 though. At least I couldn't spot a mention of it in the release notes. |
Looks like warning was the result of nodejs/node#33801, but showing the warning was unintentional and was addressed by nodejs/node#34245 (which was merged, despite the GitHub status shown). Hopefully that fix will show up in the next released node version. |
The deprecation warning is no longer shown in Node 14.6.0. |
@AlexanderOMara thanks for the update! And huge thanks to @noahbrenner and everyone else that helped track the upstream problems! I'm going to close this out now. |
Before you open this issue, please complete the following tasks:
What were you expecting to happen?
No deprecation warning should be printed on the console since Node
14.5.0
.What actually happened?
A deprecation warning is printed on the console since Node
14.5.0
.Please give us a sample of your gulpfile
Please provide the following information:
20.04
v14.5.0
v6.14.5
CLI version: 2.3.0
,Local version: 4.0.2
The text was updated successfully, but these errors were encountered: