Skip to content

app crash on file change #4

@weslleyaraujo

Description

@weslleyaraujo

I am getting the following error whenever file change is detected:

live-coding

Error

Serving src/index.js on http://localhost:3030/
fs.js:634
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open 'src/index.js'
    at Error (native)
    at Object.fs.openSync (fs.js:634:18)
    at Object.fs.readFileSync (fs.js:502:33)
    at getSnapshot (/usr/local/lib/node_modules/live-coding/index.js:40:17)
    at FSWatcher.<anonymous> (/usr/local/lib/node_modules/live-coding/index.js:53:17)
    at emitTwo (events.js:106:13)
    at FSWatcher.emit (events.js:191:7)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1406:12)

npm

npm -v
3.9.3

node

node -v
v6.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions