elm-live icon indicating copy to clipboard operation
elm-live copied to clipboard

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

Open lucamug opened this issue 5 years ago • 1 comments
trafficstars

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'
}```

lucamug avatar Aug 20 '20 07:08 lucamug

Deploy request for elm-live pending review.

Review with commit f74f9d0cee3317ef7d855a897a5295679f690df5

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

netlify[bot] avatar Aug 20 '20 07:08 netlify[bot]