After starting parcel the process hangs completely.
The only output I receive (in development mode only) is Server running at http://localhost:1234. Opening the URL in the browser the server does not respond, it's loading.
In the resource monitor, you can see a node js process is spawned with 50-70% CPU usage.
On the file system a .parcel-cache folder is created with some subfolders which don't contain any files.
After CTRL + C the process ends after ~1 second as expected.
I tried with and without a .babelrc and tsconfig.json.
I used parcel index.html, parcel build index.html and also checked the same for a tsx file.
Should build a package or throw an error message.
It does do anything visible.
No clue.
I tried the parcel v2 alpha on a real project which was working with parcel v1. After it failed I also tried an empty html file (only containing a doctype), but the result was the same.
index.html:
<!doctype html>
| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 2.0.0-alpha.1.1
| Node | 12.8.0
| npm | 6.10.3
| Operating System | Windows 10 WSL v1 with Ubuntu 18.04 LTS
The WSL setup is a fresh installation as I tried to make it work with Ubuntu 16.04 before, which failed on installation because of some missing (native) dependencies.
Not sure but it might be related to this PR: https://github.com/parcel-bundler/parcel/pull/3383
Does it work without using the linux subsystem?
Would like to try the PR/ latest v2 branch. Is there any guidance on how to test it?
I just checked in a PowerShell, where, as far as I can see, the watch mode is working like a charm. :)
@garthenweb Clone the repo, run yarn, yarn build and than locally link the cli which can be found in packages/core/parcel
@DeMoorJasper Thanks! I linked to the recent v2 branch and can verify that it is fixing the issue, awesome ๐
If anyone else sees this, I fixed this by moving the project folder into the Linux file system rather than the Windows file system. This is for WSL 2 but it may work for WSL 1 as well. I think what is happening is that parcel can't watch for code changes in the Windows portion of the file system but it can in the Linux portion since it's being run under Linux rather than Windows.