Parcel: Hot reload crashes 75% of the time (macOS)

Created on 28 Apr 2018  ยท  5Comments  ยท  Source: parcel-bundler/parcel

Choose one: is this a ๐Ÿ› bug report or ๐Ÿ™‹ feature request?
bug report

๐ŸŽ› Configuration (.babelrc, package.json, cli command)

{
  "name": "vue-parcel",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "dependencies": {
    "vue": "^2.5.16"
  },
  "devDependencies": {
    "babel-preset-env": "^1.6.1",
    "parcel-bundler": "^1.7.1",
    "parcel-plugin-vue": "^1.5.0"
  },
  "alias": {
    "vue" : "./node_modules/vue/dist/vue.common.js"
  }
}
{
  "presets": [
    "env"
  ]
}



md5-102d1fc961f5b18ee70ea0502e53e6ac



โณ  Building App.vue...
/Users/gorbypark/.config/yarn/global/node_modules/parcel-bundler/src/workerfarm/Worker.js:114
        throw new Error(
        ^

Error: Worker Farm: Received message for unknown index for existing child. This should not happen!
    at Worker.receive (/Users/gorbypark/.config/yarn/global/node_modules/parcel-bundler/src/workerfarm/Worker.js:114:15)
    at ChildProcess.emit (events.js:160:13)
    at emit (internal/child_process.js:790:12)
    at process._tickCallback (internal/process/next_tick.js:152:19)

๐Ÿ’ Possible Solution

๐Ÿ”ฆ Context

๐Ÿ’ป Code Sample

It is literally just a barebones vue environment.

๐ŸŒ Your Environment

| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.7.1
| Node | 9.5.0
| npm/Yarn | 1.3.2
| Operating System | macOS 10.12.6

Bug

Most helpful comment

@tinchoz49 Here's an example project. Sorry for the spelling mistake in the repo name, it's late!

All 5 comments

Why are you using parcel-plugin-vue?
There is native vue support in parcel.

If this doesn't resolve the error I'll open up a PR that resolves this.

Happens on 100% of parcel build for me, on 1.7.1 on Linux. Same error.

Downgrading to 1.7.0 solved.

This is a very strange bug? This means the workers aren't being started by the workerfarm, so you're running something that's not part of parcels workers as workers @lbguilherme
Would like to debug this if it's an open-source project, for now I'll open up a PR that just ignores these messages.

Hi @lbguilherme! can you create an example project to test? I'm having the same error using parcel-plugin-typescript

@tinchoz49 Here's an example project. Sorry for the spelling mistake in the repo name, it's late!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dotdash picture dotdash  ยท  3Comments

mnn picture mnn  ยท  3Comments

urbanhop picture urbanhop  ยท  3Comments

Niggler picture Niggler  ยท  3Comments

dsky1990 picture dsky1990  ยท  3Comments