[DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated when Browsersync: Connected
See original GitHub issueIssue details
As soon as I connect to the server (localhost:3000) I received the following message: (node:37943) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
Steps to reproduce/test case
Use node, npm and gulp as indicated below. All the tasks load properly, but when connected with browser-sync at localhost:3000 node sends the DEP0066 message and it stops working.
Please specify which version of Browsersync, node and npm you’re running
- Browsersync [ 2.26.5 ]
- Node [ 12.1.0 ]
- Npm [ 6.9.0 ]
Affected platforms
- linux
- windows
- OS X
- freebsd
- solaris
- other (please specify which)
Browsersync use-case
- API
- Gulp
- Grunt
- CLI
for all other use-cases, (gulp, grunt etc), please show us exactly how you’re using Browsersync
function browsersync(){
browserSync.init( {
proxy: projectURL,
open: false,
injectChanges: true,
} );
};
gulp.task( 'default', gulp.series(styles, php, phpDIST, vendorsJS, customJS, images, browsersync, watchTask));
Issue Analytics
- State:
- Created 4 years ago
- Reactions:20
- Comments:15 (3 by maintainers)
Top Results From Across the Web
How to fix (node:12388) [DEP0066] DeprecationWarning ...
When I started project I got warning from node ([DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated) every time. But ...
Read more >DEP0066, Node js deprecation warning, How to check ...
(node:37943) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated. Steps to reproduce/test case. Use node, npm and gulp as indicated ...
Read more >Answered: how to fix this problem in node js - Bartleby
Solution for how to fix this problem in node js ? (node:41392) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated (Use `node…
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed by updating “browser-sync”: “^2.26.7”.
Hey @suhailkc I had to downgrade to node 10.15.3 LTS to solve it.