parcel icon indicating copy to clipboard operation
parcel copied to clipboard

Parcel hot reload error on WSL

Open shrkamat opened this issue 1 year ago • 1 comments

🐛 bug report

In WSL 2, Parcel is unable to handle hot reloading properly. When editing a source file, the following error occurs

🚨 Build failed.
  
unknown: Entry /home/skamath/parcel-dev/index.html does not exist

🎛 Configuration (.babelrc, package.json, cli command)

npx parcel serve index.html --no-cache --log-level verbose

{
  "name": "parcel-dev",
  "version": "1.0.0",
  "description": "",
  "source": "index.html",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "parcel": "^2.12.0"
  }
}

🤔 Expected Behavior

Expect hot reloading to work.

😯 Current Behavior

Hot reload not working

unknown: Entry /home/skamath/parcel-dev/index.html does not exist

💁 Possible Solution

🔦 Context

💻 Code Sample

asciicast

🌍 Your Environment

Software Version(s)
Parcel 2.12.0
Node v18.19.1
npm 9.2.0
Operating System 5.15.153.1-microsoft-standard-WSL2
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble

shrkamat avatar Sep 12 '24 03:09 shrkamat

Maybe you don't have proper permissions? Please provide a reproduction.

devongovett avatar Sep 29 '24 00:09 devongovett

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.

github-actions[bot] avatar Mar 28 '25 12:03 github-actions[bot]