Parcel: Hangs after startup (WSL/ Ubuntu 18)

Created on 19 Aug 2019  ยท  5Comments  ยท  Source: parcel-bundler/parcel

๐Ÿ› bug report

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.

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

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.

๐Ÿค” Expected Behavior

Should build a package or throw an error message.

๐Ÿ˜ฏ Current Behavior

It does do anything visible.

๐Ÿ’ Possible Solution

No clue.

๐Ÿ”ฆ Context

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.

๐Ÿ’ป Code Sample

index.html:

<!doctype html>

๐ŸŒ Your Environment

| 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.

Bug โœจ Parcel 2

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

algebraic-brain picture algebraic-brain  ยท  3Comments

philipodev picture philipodev  ยท  3Comments

adamreisnz picture adamreisnz  ยท  3Comments

humphd picture humphd  ยท  3Comments

jzimmek picture jzimmek  ยท  3Comments