-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@embroider/webpack building forever #1532
Comments
Any chance you have a reproduction repo that demonstrates this problem? |
@NullVoxPopuli I happen to have one :) Running ESA is pretty straightforward:
Bear in mind that the It does seem to at least throw an error on CI https://github.com/mainmatter/ember-simple-auth/actions/runs/5562444913/jobs/10160768826?pr=2604 |
I seem to have fixed this. Now it just throws and doesn't hang. |
@NullVoxPopuli to reproduce the problem simply create a new ember app with |
@c0rydoras is it possible that you have installed In this case I'd recommend uninstalling pnpm and nodejs i.e. Please see if there's any warning in your console at the very start. |
@BobrImperator yes, but the problem does not only occur when using also yes when using
I do normally use |
I ran ❯ npx ember-cli@latest new test-embroider --embroider --yarn and got success
My environment info:
And with pnpm
However, when I switch to Node 20, I experience the same hangup you reported. 🎉 |
@NullVoxPopuli what linux distro? |
❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
❯ uname -a
Linux hephaestus 5.19.0-41-generic #42~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
|
Installing the package managers & node with volta fixed the problem :D thank you |
it we actually have a problem on node 20 we should keep this issue open |
so been looking into this a bit and discovered something I really wasn't expecting |
How I reproduced in a separate embroider app:
System info (native ubuntu)
|
Confirmed that the above reproduction does not happen on Mac. |
reproduced with Ubuntu 22 running in WSL on windows 10 |
reproduced with Debian 11:
(not using 'volta' but 'n' for node versions) |
I think the issue is caused by webpack-contrib/thread-loader#191. Setting the environment variable UV_USE_IO_URING=0 fixes my builds |
@void-mAlex @NullVoxPopuli can we confirm that @jakesjews's suggestion fixes |
Confirm, |
my next question is what is that variable and what does it do |
Node 20.3.0 updated libuv which added support for using linux io_uring in the filesystem instead of the thread pool. Setting UV_USE_IO_URING=0 disables io_uring. I'm not sure if its a bug with the io_uring stuff or if the performance improvement exposed some sort of race condition in a library somewhere |
issue has now been reported on node 18.18 (and NOT happening on 18.17) -some of these are versions that GH actions run on |
I've confirmed this is resolved in node 20.8.0 |
It looks like Node 18.18.1 is working through release now too: nodejs/node#50066 |
We can close this when 18.18.1 is released and we confirm that it's fixing this. |
closing as 18.18.1 is out with a fix for the issue and is available in github ci as well |
Problem
I can't serve or build any embroider projects anymore (embroider versions tested 2.x, 3.x), its stuck at
⠋ building... [@embroider/webpack]
. I also tried different package managers (npm, pnpm, yarn) all resulting in the same state of⠋ building... [@embroider/webpack]
forever. This started after a system upgrade, since then i have tried these things:System details
OS:
archlinux
NPM:
9.8.0
yarn:
1.22.19
pnpm:
8.6.7
node:
16, 18 and 20
ember-source:
4.12 and 5
ember-cli:
4.12 and 5
ember-data:
4.11, 4.12 and 5
The text was updated successfully, but these errors were encountered: