question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hangs after startup (WSL/ Ubuntu 18)

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
satvikpendemcommented, Aug 20, 2019

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.

1reaction
garthenwebcommented, Aug 19, 2019

@DeMoorJasper Thanks! I linked to the recent v2 branch and can verify that it is fixing the issue, awesome 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 Ubuntu WSL freezes randomly
I have installed Ubuntu Windows-Subsystem-for-Linux through Microsoft Store on my Windows 10 laptop, but it freezes randomly, ...
Read more >
Troubleshooting Windows Subsystem for Linux
Open Control Panel -> Programs and Features -> Turn Windows Feature on or off -> Check Windows Subsystem for Linux or using the...
Read more >
Install Ubuntu on WSL2 on Windows 10
In this tutorial, we'll show you how to get up and running with Ubuntu on WSL. These instructions will work on both Windows...
Read more >
VS Code Remote - Can't run 'code' command in WSL ...
Just run Vscode normally on windows. This will load wsl extension and solve the issue.
Read more >
Dell G3 3590 freezing on Ubuntu 18.04, 19.10 and ...
If the problem is the disk, booting from a USB or DVD should work. Boot from the Ubuntu install disk (try it rather...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found