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

DeprecationWarning: DEBUG_FD is deprecated. #1433

Open
2 tasks done
chenop opened this issue Sep 25, 2017 · 0 comments
Open
2 tasks done

DeprecationWarning: DEBUG_FD is deprecated. #1433

chenop opened this issue Sep 25, 2017 · 0 comments

Comments

@chenop
Copy link

chenop commented Sep 25, 2017

Issue details

When using browser-sync@2.18.12 got the following warning:

(node:11472) DeprecationWarning: DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/vMUyr)

This is a know issue describe here.
Should be resolved when upgrading debug package to 2.6.1 or above.

Steps to reproduce/test case

always

Please specify which version of Browsersync, node and npm you're running

  • Browsersync [ 2.18.12 ]
  • Node [ 6.10.3 ]
  • Npm [ 3.10.0 ]

Affected platforms

  • windows

Browsersync use-case

  • API

If CLI, please paste the entire command below

{cli command here}

for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync

{Browsersync init code here}
browserSync({
  https: true,
  cors: true,
  port: 3000,
  ui: {
    port: 3001
  },
  server: {
    baseDir: 'src',

    middleware: [
      historyApiFallback(),

      webpackDevMiddleware(bundler, {
        // Dev middleware can't access config, so we provide publicPath
        publicPath: config.output.publicPath,

        // These settings suppress noisy webpack output so only errors are displayed to the console.
        stats: "errors-only",

        // for other settings see
        // http://webpack.github.io/docs/webpack-dev-middleware.html
      }),

      // bundler should be the same as above
      webpackHotMiddleware(bundler)
    ]
  },

  // no need to watch '*.js' here, webpack will take care of it for us,
  // including full page reloads if HMR won't work
  files: [
    'src/*.html'
  ]
});

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

1 participant