These are chat archives for brunch/brunch

2nd
Feb 2017
Neya
@dsignr
Feb 02 2017 12:22 UTC
Hi guys, when I run brunch build LOGGY_STACKS=true I get this error. What could be the cause? I tried re-installing NPM, brunch, etc.
Error: ENOENT: no such file or directory, uv_chdir
  at process.chdir (/Volumes/Mac Software/Desktop/projects/Work/Sourceless/test/node_modules/graceful-fs/polyfills.js:21:9)
  at process.chdir (/usr/local/lib/node_modules/brunch/node_modules/graceful-fs/polyfills.js:21:9)
  at watch (/usr/local/lib/node_modules/brunch/lib/watch.js:364:15)
  at start (/usr/local/lib/node_modules/brunch/lib/index.js:47:28)
  at Command.listener (/usr/local/lib/node_modules/brunch/node_modules/commander/index.js:301:8)
  at emitTwo (events.js:106:13)
  at Command.emit (events.js:192:7)
  at Command.parseArgs (/usr/local/lib/node_modules/brunch/node_modules/commander/index.js:615:12)
  at Command.parse (/usr/local/lib/node_modules/brunch/node_modules/commander/index.js:458:21)
  at Object.exports.run (/usr/local/lib/node_modules/brunch/lib/cli.js:109:11)
  at loadBrunch (/usr/local/lib/node_modules/brunch/bin/brunch:56:37)
  at loadGlobalBrunch (/usr/local/lib/node_modules/brunch/bin/brunch:60:3)
  at Object.<anonymous> (/usr/local/lib/node_modules/brunch/bin/brunch:72:5)
  at Module._compile (module.js:571:32)
  at Object.Module._extensions..js (module.js:580:10)
  at Module.load (module.js:488:32)
  at tryModuleLoad (module.js:447:12)
  at Function.Module._load (module.js:439:3)
  at Module.runMain (module.js:605:10)
  at run (bootstrap_node.js:418:7)
  at startup (bootstrap_node.js:139:9)
  at bootstrap_node.js:533:3
Aleksey Shvayka
@shvaikalesh
Feb 02 2017 12:22 UTC
try LOGGY_STACKS=true brunch build
Neya
@dsignr
Feb 02 2017 12:24 UTC
info: compiled initialize.js into app.js, copied 2 in 829 ms
But, the compilation isn't correct, the CSS part is untouched :(
Aleksey Shvayka
@shvaikalesh
Feb 02 2017 12:24 UTC
config?
Neya
@dsignr
Feb 02 2017 12:25 UTC
# See http://brunch.io for documentation.
module.exports =

  files:
    javascripts:
      joinTo:
        '/js/vendor.js': /app\/coffeescript\/vendor/
        '/js/application.js': /app\/coffeescript\/application/
        '/js/pages.js': /app\/coffeescript\/pages/
      order:
        before: [
          /app\/coffeescript\/vendor/
        ]
        after: [
          /app\/coffeescript\/pages/
        ]

    stylesheets:
      joinTo:
        '/css/application.css': [
                                  /app\/sass\/vendor/,
                                  /app\/sass\/application/
                                ]
        '/css/pages.css':  [
                              /app\/sass\/vendor/,
                              /app\/sass\/pages/
                           ]
      order:
        before: [
          /app\/sass\/vendor\/semantic/
        ]

  paths:
    public: '/priv/static'
    watched: ['/app/coffeescript','/app/coffeescript/vendor', '/app/sass', '/app/sass/vendor']

  npm: enabled: false

  modules:
    wrapper: false
    definition: false

  sourceMaps: false
Aleksey Shvayka
@shvaikalesh
Feb 02 2017 12:29 UTC
dunno, please open an issue
Neya
@dsignr
Feb 02 2017 12:30 UTC
Ok, thank you
Aleksey Shvayka
@shvaikalesh
Feb 02 2017 12:30 UTC
also pls try to remove leading / from watched paths
Neya
@dsignr
Feb 02 2017 12:31 UTC
Ah, ok
What's funny is that this works on another machine with the same piece of code
Aleksey Shvayka
@shvaikalesh
Feb 02 2017 12:32 UTC
that's odd. both are posix?
Neya
@dsignr
Feb 02 2017 12:32 UTC
Yeah both are Macs
Same OS same versions of npm, brunch, etc
Neya
@dsignr
Feb 02 2017 12:48 UTC
Finally made it work.
Downgraded NPM version to 3.9.3
In case anyone wanted to know.
Relevant: brunch/brunch#1121