First load of page works. But when refreshing the page:
yarn run v1.3.2
$ standard && parcel src/index.html -p 3000 --open
Server running at http://localhost:3000
✨ Built in 32.58s.
/Users/niklas/Sites/hyperapp-todo-parcel/node_modules/parcel-bundler/src/Logger.js:27
this.lines += message.split('\n').length;
^
TypeError: message.split is not a function
at Logger.write (/Users/niklas/Sites/hyperapp-todo-parcel/node_modules/parcel-bundler/src/Logger.js:27:29)
at Logger.log (/Users/niklas/Sites/hyperapp-todo-parcel/node_modules/parcel-bundler/src/Logger.js:38:10)
at WebSocket.handleSocketError (/Users/niklas/Sites/hyperapp-todo-parcel/node_modules/parcel-bundler/src/HMRServer.js:88:12)
at WebSocket.onError (/Users/niklas/Sites/hyperapp-todo-parcel/node_modules/ws/lib/event-target.js:128:16)
at WebSocket.emit (events.js:160:13)
at WebSocket.finalize (/Users/niklas/Sites/hyperapp-todo-parcel/node_modules/ws/lib/websocket.js:190:41)
at Socket.emit (events.js:165:20)
at emitErrorNT (internal/streams/destroy.js:64:8)
at process._tickCallback (internal/process/next_tick.js:152:19)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
💁 Possible Solution
Looks like a error with HMR, because it works with --no-hmr.
🐛 bug report
😯 Current Behavior
First load of page works. But when refreshing the page:
💁 Possible Solution
Looks like a error with HMR, because it works with
--no-hmr
.Maybe because of version bumping?
💻 Code Sample
Repo: https://github.com/marcusasplund/hyperapp-todo-parcel
@marcusasplund
🌍 Your Environment