Closed girishso closed 5 years ago
What Node version are you using?
Try installing the new alpha and let me know if the issue is fixed!
Tried the new alpha, now the server starts but when accessing it in browser it crashes.
I'm on Mac btw.
╰→ elm-live --version
4.0.0-alpha.3
╰→ node -v
v12.6.0
╰→ elm-live ./src/Main.elm --open -- --output=./src/static/elm.js
.
.
internal/fs/utils.js:426
throw new ERR_INVALID_ARG_TYPE(propName, ['string', 'Buffer', 'URL'], path);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be one of type string, Buffer, or URL. Received type undefined
at readFile (fs.js:302:10)
at /Users/girish/.config/yarn/global/node_modules/crocks/Async/index.js:54:10
at Object.fork (/Users/girish/.config/yarn/global/node_modules/crocks/Async/index.js:155:20)
at /Users/girish/.config/yarn/global/node_modules/crocks/Async/index.js:254:41
at settle (/Users/girish/.config/yarn/global/node_modules/crocks/Async/index.js:151:16)
at ReadFileContext.callback (/Users/girish/.config/yarn/global/node_modules/crocks/Async/index.js:56:47)
at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:246:13)
Do you have you project in a repo I can use to test?
This should be fixed now! 👌
Just trying out alpha version, I get following error. Any ideas?