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

Remote Debugger not working when Host is specified #1289

Open
2 of 10 tasks
am opened this issue Jan 10, 2017 · 3 comments
Open
2 of 10 tasks

Remote Debugger not working when Host is specified #1289

am opened this issue Jan 10, 2017 · 3 comments

Comments

@am
Copy link

am commented Jan 10, 2017

Issue details

When host is specified the Remote Debugger cannot be activated, it fails throwing an error.

Steps to reproduce/test case

  1. Run browser-sync start -s --host 'localhost.browser-sync.io'
  2. Enable Remote Debugger (weinre)
  3. Check console for error:
    /your-project/node_modules/server-destroy/index.js:8
      server.on('connection', function(conn) {
             ^
    
    TypeError: server.on is not a function
    

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

  • Browsersync [2.18.6]
  • Node [v6.9.1]
  • Npm [3.10.8]

Affected platforms

  • linux
  • windows
  • OS X
  • freebsd
  • solaris
  • other (please specify which)

Browsersync use-case

  • API
  • Gulp
  • Grunt
  • CLI

If CLI, please paste the entire command below

browser-sync start -s --host 'localhost.browser-sync.io'

@dannytech
Copy link

dannytech commented Jan 29, 2017

I am seeing this issue as well, but when using the API with Node 7.4.0 and npm 4.0.5 on Ubuntu 14.04. For reference, here is my code:

browserSync.init({
  port: 8080,
  open: 'external',
  host: 'example.com',
  server: {
    baseDir: 'dist'
  },
  ui: {
    port: 8081,
    weinre: {
        port: 8082
    }
  },
})

And this is the error I am getting, before my app exits:

/home/ubuntu/workspace/node_modules/server-destroy/index.js:6
server.on('connection', function(conn) {
^

TypeError: server.on is not a function

Everything, including the BrowserSync version, is identical, or very similar.

@pmirandaarias
Copy link

Same here,
Node 7.4.6, Cloud9 IDE (Ubuntu 14), Webpack 1.4

@devkokov
Copy link

Same here.

Has anyone found a solution?

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

4 participants