wking-io / elm-live

⚡ A flexible dev server for Elm. Live reload included.
https://elm-live.com
MIT License
1.05k stars 61 forks source link

Fix a variable name that cause elm-live to crash in several circumstances #239

Open lucamug opened 4 years ago

lucamug commented 4 years ago

This is causing elm-live to crash with error


internal/fs/utils.js:581
    throw new ERR_INVALID_ARG_TYPE(propName, ['string', 'Buffer', 'URL'], path);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
    at readFile (fs.js:317:10)
    at /Users/lucamug/p/elm-live/node_modules/crocks/Async/index.js:54:10
    at Object.fork (/Users/lucamug/p/elm-live/node_modules/crocks/Async/index.js:155:20)
    at /Users/lucamug/p/elm-live/node_modules/crocks/Async/index.js:254:41
    at settle (/Users/lucamug/p/elm-live/node_modules/crocks/Async/index.js:151:16)
    at ReadFileContext.callback (/Users/lucamug/p/elm-live/node_modules/crocks/Async/index.js:56:47)
    at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:261:13) {
  code: 'ERR_INVALID_ARG_TYPE'
}```
netlify[bot] commented 4 years ago

Deploy request for elm-live pending review.

Review with commit f74f9d0cee3317ef7d855a897a5295679f690df5

https://app.netlify.com/sites/elm-live/deploys