blazeu / atom-browsersync

An Atom package to start Browsersync from the editor
MIT License
6 stars 0 forks source link

Given Error - Uncaught TypeError: uiOpts.get is not a function - on start with Ctrl+Alt+Shift+L #1

Closed SiriusScaper closed 4 years ago

SiriusScaper commented 7 years ago

[Enter steps to reproduce below:]

  1. Attempting to start with Ctrl+Alt+Shift+L in html/css files

Atom Version: 1.12.6 Electron Version: 1.3.9 System: Mac OS X 10.12.2 Thrown From: atom-browsersync package, v0.1.2

Stack Trace

Uncaught TypeError: uiOpts.get is not a function

At /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:271

TypeError: uiOpts.get is not a function
    at Object.startUi [as fn] (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:271:31)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at Object.startSockets [as fn] (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:250:9)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at Object.startTunnel [as fn] (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:229:13)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at Object.startServer [as fn] (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:197:9)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at Object.mergeMiddlewares [as fn] (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:180:9)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at Object.setFileWatchers [as fn] (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:168:9)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at Object.setInternalEvents [as fn] (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:161:9)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at Object.setOptions [as fn] (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:142:9)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at Object.resolveInlineUserPlugins [as fn] (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:134:9)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /Users/SiriusScaper/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:97:17
    at QueryReqWrap.asyncCallback [as callback] (dns.js:62:16)
    at QueryReqWrap.onresolve [as oncomplete] (dns.js:218:10)

Commands

  6x -6:59.7.0 atom-browsersync:toggle (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "telemetryConsent": "limited",
    "themes": [
      "one-dark-ui",
      "cobalt2-syntax"
    ]
  },
  "atom-browsersync": {}
}

Installed Packages

# User
atom-browsersync, v0.1.2 (active)
cobalt2-syntax, v0.4.0 (active)
emmet, v2.4.3 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.45.0 (inactive)
base16-tomorrow-dark-theme, v1.3.0 (inactive)
base16-tomorrow-light-theme, v1.3.0 (inactive)
one-dark-ui, v1.6.2 (active)
one-light-ui, v1.6.2 (inactive)
one-dark-syntax, v1.5.0 (inactive)
one-light-syntax, v1.5.0 (inactive)
solarized-dark-syntax, v1.0.5 (inactive)
solarized-light-syntax, v1.0.5 (inactive)
about, v1.7.0 (active)
archive-view, v0.62.0 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.13.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.4 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.42.0 (active)
bracket-matcher, v0.82.2 (active)
command-palette, v0.39.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.202.2 (inactive)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.60.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.2 (inactive)
markdown-preview, v0.158.8 (active)
metrics, v1.1.2 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.1 (inactive)
package-generator, v1.0.1 (inactive)
settings-view, v0.243.1 (active)
snippets, v1.0.4 (active)
spell-check, v0.68.4 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.2 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.103.0 (active)
timecop, v0.33.2 (active)
tree-view, v0.210.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.35.0 (active)
wrap-guide, v0.38.2 (active)
language-c, v0.54.0 (active)
language-clojure, v0.22.1 (active)
language-coffee-script, v0.48.0 (active)
language-csharp, v0.13.0 (active)
language-css, v0.40.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.43.0 (active)
language-html, v0.47.1 (active)
language-hyperlink, v0.16.1 (active)
language-java, v0.24.0 (active)
language-javascript, v0.122.0 (active)
language-json, v0.18.3 (active)
language-less, v0.29.6 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.37.0 (active)
language-php, v0.37.3 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.1 (active)
language-ruby, v0.70.2 (active)
language-ruby-on-rails, v0.25.1 (active)
language-sass, v0.57.0 (active)
language-shellscript, v0.23.0 (active)
language-source, v0.9.0 (active)
language-sql, v0.25.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.29.1 (active)
language-toml, v0.18.1 (active)
language-xml, v0.34.12 (active)
language-yaml, v0.27.1 (active)

# Dev
No dev packages
blazeu commented 7 years ago

Do you use bs-config.js? if so, post the content here

SiriusScaper commented 7 years ago

No, I wasn't using that. I've started using codekit though.

blazeu commented 7 years ago

Are you still trying to use this package? Try the latest version. If not, you can close the issue.

KiltedViking commented 7 years ago

I have the same problem on Windows, I just installed it the package and have tried restarting Atom.

I have not created a bs-config.js file (as its supposed to be optional ;-)).

Atom Version: 1.12.7 Electron Version: ??? (can't find where to see version...) System: Windows 10, version 1607, 14393.576, 64-bit Thrown From: atom-browsersync package, v0.20.0

blazeu commented 7 years ago

Is there any stack trace?

lunchbox92 commented 7 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.14.3 x64 Electron: 1.3.13 OS: Mac OS X 10.12.3 Thrown From: atom-browsersync package 0.2.0

Stack Trace

Uncaught TypeError: uiOpts.get is not a function

At /Users/te196352/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:271

TypeError: uiOpts.get is not a function
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:271:31)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:250:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:229:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:197:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:180:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:168:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:161:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:142:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:134:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:97:17
    at QueryReqWrap.asyncCallback [as callback] (dns.js:62:16)
    at QueryReqWrap.onresolve [as oncomplete] (dns.js:218:10)

Commands

     -4:52.5.0 core:confirm (input.hidden-input)
  2x -1:40.3.0 atom-browsersync:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)

Non-Core Packages

api-docs 0.0.6 
atom-beautify 0.29.13 
atom-browsersync 0.2.0 
autocomplete-paths 1.0.2 
emmet 2.4.3 
file-icons 1.7.25 
git-plus 5.28.0 
language-cshtml 0.2.1 
linter 1.11.18 
linter-csslint 1.3.3 
linter-eslint 8.0.0 
linter-htmlhint 1.3.1 
markdown-preview-plus 2.4.0 
markdown-writer 2.6.2 
minimap 4.25.7 
nord-atom-syntax 0.4.0 
nord-atom-ui 0.9.0 
qolor 0.4.1 
seti-syntax 1.0.1 
seti-ui 1.4.0 
terminal-panel 1.14.1 
noAlvaro commented 7 years ago

Same here...

  1. Open Atom
  2. Start atom-browsersync, from the menu

Atom: 1.15.0 x64 Electron: 1.3.13 OS: Mac OS X 10.12.3 Thrown From: atom-browsersync package 0.2.0

Stack Trace

Uncaught TypeError: uiOpts.get is not a function

At /Users/alvaro/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:271

TypeError: uiOpts.get is not a function
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:271:31)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:250:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:229:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:197:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:180:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:168:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)

Commands

     -0:18 atom-browsersync:open-in-browser (input.hidden-input)
     -0:10.3.0 atom-browsersync:toggle (input.hidden-input)

Non-Core Packages

atom-browsersync 0.2.0 
coffee-compile 0.24.0 
kitten77 commented 6 years ago

huh?

[Enter steps to reproduce:]

  1. open atom
  2. ctrl+alt+shift+L

Atom: 1.18.0 x64 Electron: 1.3.15 OS: Debian GNU/Linux Thrown From: atom-browsersync package 0.2.0

Stack Trace

Uncaught TypeError: uiOpts.get is not a function

At /home/muad/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:271

TypeError: uiOpts.get is not a function
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:271:31)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:250:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:229:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:197:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:180:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:168:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:161:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:142:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:134:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:97:17
    at QueryReqWrap.asyncCallback [as callback] (dns.js:62:16)
    at QueryReqWrap.onresolve [as oncomplete] (dns.js:218:10)

Commands

     -2:53 atom-browsersync:toggle (div.tool-panel.tree-view)
     -1:07.1.0 tree-view:show-in-file-manager (span.name.icon.icon-file-directory)
     -0:18 atom-browsersync:toggle (div.tool-panel.tree-view)

Non-Core Packages

atom-browsersync 0.2.0 
atom-django 0.3.2 
django-templates 0.5.0 
language-django 0.1.1 
mixedd69 commented 6 years ago

Same here...

mixedd69 commented 6 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.19.2 x64 Electron: 1.6.9 OS: Mac OS X 10.11.6 Thrown From: atom-browsersync package 0.2.0

Stack Trace

Uncaught TypeError: uiOpts.get is not a function

At /Users/edijsrozens/.atom/packages/atom-browsersync/node_modules/browser-sync/lib/async.js:271

TypeError: uiOpts.get is not a function
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:271:31)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:250:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:229:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:197:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:180:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:168:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:161:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:142:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:134:9)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:276:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/packages/atom-browsersync/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at /packages/atom-browsersync/node_modules/browser-sync/lib/async.js:97:17
    at QueryReqWrap.asyncCallback [as callback] (dns.js:62:16)
    at QueryReqWrap.onresolve [as oncomplete] (dns.js:221:10)

Commands

     -7:34.8.0 application:open (input.hidden-input)
     -7:32.9.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-material-syntax.theme-atom-material-ui)
     -7:21.7.0 atom-browsersync:toggle (input.hidden-input)

Non-Core Packages

atom-beautify 0.30.5 
atom-browsersync 0.2.0 
atom-material-syntax 1.0.6 
atom-material-ui 2.0.4 
atom-ternjs 0.18.3 
autoclose-html 0.23.0 
autocomplete-paths 2.8.0 
busy-signal 1.4.3 
color-picker 2.2.5 
emmet 2.4.3 
file-icons 2.1.11 
highlight-selected 0.13.1 
intentions 1.1.5 
linter 2.2.0 
linter-eslint 8.2.1 
linter-ui-default 1.6.7 
minimap 4.29.6 
native-ui 0.22.1 
new-moon-atom-syntax 2.0.9 
pigments 0.40.2 
tool-bar 1.1.0 
tool-bar-main 0.0.10 
sisi-sh commented 6 years ago

One workaround I've found is to turn off this

jshnaidman commented 6 years ago

Specifying the port of the ui incorrectly in my browserSync.init method caused the same problem.

Here was my options:

        proxy: "http://localhost:" + config.port,
        files: [config.paths.dist + '/**/*'],
        open: 'local',
        browser: "default",
        port: 9006,
        ui: 9007

It became fixed by changing my options to:

 ```
    proxy: "http://localhost:" + config.port,
    files: [config.paths.dist + '/**/*'],
    open: 'local',
    browser: "default",
    port: 9006,
    ui: {
        port: 9007
    }
stacktrace: 

TypeError: uiOpts.get is not a function
    at Object.startUi [as fn] (/home/jacob/workspace/webdev/react_flux/node_modules/browser-sync/lib/async.js:271:31)
    at /home/jacob/workspace/webdev/react_flux/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/home/jacob/workspace/webdev/react_flux/node_modules/browser-sync/lib/utils.js:276:13)
    at /home/jacob/workspace/webdev/react_flux/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/home/jacob/workspace/webdev/react_flux/node_modules/browser-sync/lib/browser-sync.js:170:13)
    at Object.startSockets [as fn] (/home/jacob/workspace/webdev/react_flux/node_modules/browser-sync/lib/async.js:250:9)
    at /home/jacob/workspace/webdev/react_flux/node_modules/browser-sync/lib/browser-sync.js:149:14
    at iterate (/home/jacob/workspace/webdev/react_flux/node_modules/browser-sync/lib/utils.js:276:13)
    at /home/jacob/workspace/webdev/react_flux/node_modules/browser-sync/lib/utils.js:285:25
    at executeTask (/home/jacob/workspace/webdev/react_flux/node_modules/browser-sync/lib/browser-sync.js:170:13)
action1020 commented 6 years ago

i got it, this problem is setting on package, turn off ui

here examples

1

faizan48 commented 5 years ago

I have the same problem on Windows, I just installed it the package and have tried restarting Atom.

I have not created a bs-config.js file (as its supposed to be optional ;-)).

Atom Version: 1.12.7 Electron Version: ??? (can't find where to see version...) System: Windows 10, version 1607, 14393.576, 64-bit Thrown From: atom-browsersync package, v0.20.0

please explain steps how to do this?