Fix: win fs.watchFile error #15

Merged
merged 2 commits into from Jun 17, 2012

Projects

None yet

3 participants

Collaborator
piscis commented May 11, 2012

If I start my project in windows environment (Windows 7 64bit) I had this error.

$ node index.js
   info  - socket.io started
Activating CSS updater
watching c:\Users\pirsig\Documents\testpiler\style.css for changes

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: use fs.watch api instead
    at Object.watchFile (fs.js:746:11)
    at JSManager._watch (c:\Users\pirsig\Documents\testpiler\node_modules\piler\lib\livecss.coffee:108:17)
    at JSManager.<anonymous> (c:\Users\pirsig\Documents\testpiler\node_modules\piler\lib\livecss.coffee:93:35)
    at HTTPServer.<anonymous> (c:\Users\pirsig\Documents\testpiler\node_modules\piler\lib\livecss.coffee:96:14)
    at HTTPServer.emit (events.js:88:20)
    at Array.0 (net.js:777:10)
    at EventEmitter._tickCallback (node.js:192:40)

I am also having this problem... +1 for this pull

@epeli epeli merged commit 24c14bb into epeli:master Jun 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment