-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
The Nx Daemon is unsupported in WebAssembly environments #27263
Comments
Rolling back to version thanks @nathanqtlv for spotting it |
same issue on windows 11 |
I have the same issue on windows 11 and wsl2 today with 19.5.6. Downgrading to 19.4.4 did not work either. Strange thing is that it was working today, until an hour ago although i did not change anything.
EDIT: Deleting node_modules, package-lock.json and .nx folder, and rerunning npm install solved the issue. No need to downgrade. |
On my end, since it happens when running Running |
same issue on macOS 12.7.1 Rolling back to version 19.4.4 seems to fix the issue too But I'm confused, because I've tested the same project on other setups and didn't get this error (tested on m2, m3 apple chips, macOS 14+) |
same issue for our setup. rolling back to v19.5.5 fixed the issue. |
This also worked for me on macOS 14+ without downgrading. |
Same issue on Fedora 40. |
I wonder if this issue could be caused by security software somehow preventing memory allocation by Rust code. (I've noticed that the SWC npm post-install script hangs as well, might be related). I observed that a security software process on my machine shows CPU activity correlated with running the nx command.
I don't have much knowledge about Rust, memory allocation and if a security software can actually cause this, but tight now that's my best bet from what I observe... @BergLucas, @GlebUrentsev, @thilohaas, |
I forgot to say that, in my case, I fixed the error by setting the version of |
The Nx Daemon is unsupported in WebAssembly environments. Some things may be slower than or not function as expected. Node : 22.4.0 nx (global) : 19.6.1 |
Possibly related to #22870? |
I had the same problem with nx version 19.5.2. in my case just reinstalling the node modules ( Node : 20.15.1 |
I transferred a project from my personal laptop to my company laptop. When I try to serve the app on the company laptop, I encounter an error that did not occur on my personal laptop, where there were no daemon issues either. I am using Windows 11 Pro. Could this issue be related to administrator rights or the Nx version 19.6.2? npm - 10.8.2 |
Just ran into this issue and found that we had optionalDependencies that were installing the binaries manually. When we upgraded we forgot to update the binaries that were optionally installed. |
Did you resolve the issue by manually installing the optional Dependencies ? |
Already had them due to CI/CD needs. |
Personally, this issue is only coming when using the Nx VSC Extension. I am able to manually run |
I fixed this error by install Microsoft Visual C++ 2015 Redistributable (x64) |
same problem :( |
I had this same issue on macOS 14.6.1, node 20.17.0, npm 10.8.2 Downgrading to 19.4.4 fixed the issue for me and so did upgrading to 19.6.4 |
NX The Nx Daemon is unsupported in WebAssembly environments. Some things may be slower than or not function as expected. Same issue on Windows pro 23h2 with PNPM 9.9.0 |
Bug Fix: Microsoft Visual C++ Redistributable UpdateIssue: After an extended period of troubleshooting, it was identified that the issue was related to an outdated Microsoft Visual C++ Redistributable on Windows systems. Solution: Ensure that the Microsoft Visual C++ Redistributable is up-to-date. This update resolves compatibility issues and improves overall stability. Details: |
Hello, Concerning the message that Get the latest Microsoft Redistributable C++ on: |
The above is what was giving me issues. The below worked.
|
Same issue here, a colleague of mine can't work on the project on his Windows 11 machine. (I'm on macOS, and I can't reproduce the problem).
An issue pops from nowhere from time to time, and it really affects the quality of life of the developers who encounter this kind of issues. Tell me if I can help you with that! On my end I tried to get a fresh |
⭐️ Follow-up to my previous message: |
Same issue with global nx.
I definitely had global NX installed, I created projects with it. Not sure what happened |
thank you so much! this solution worked for me! |
Following up. |
Same thing here on Mac M2 when serving an Angular Application. |
I have the same problem, and nothing is working to fix this. I have completely uninstalled NX and reinstalled, completely removed NPM and Node and reinstalled, tried everything. I removed my local git repo and re-cloned and that worked briefly and then this started happening again. Any solution would be very helpful. I am on MacOS 15 |
So I managed to make my project viable again. I bumped NX to 20.0.3 through the nx migrate command. I completely removed .nx and node_modules, reinstalled node_modules, nx reset, and it now work as intended. |
I have the same problem on macOS 14.0. Tried solutions in this thread but nothing works for me :/ |
I did this, and additionally I move repository from external disk to main disk on Mac mini, it helps in my case. Not sure if both things are needed, but one helps for sure ^^
|
Same Problem, windows 11 , @nx/angular: 19.8.4 |
this solved the issue on windows 11 |
Same here on macOS Sonoma 14.2.1 (23C71) M1 serving an Angular application. |
I'm running on a locked-down corporate windows 11 laptop for one of my projects and have out of the blue started getting this warning today along with all projects disappearing when running any nx command. I checked in installed apps and already have up-to-date Microsoft Redistributable C++ but I'm going to see if I can reinstall. I actually suspect the security software as has been alluded to above. I haven't tracked down the exact cause and solution yet, but I think something is going on with the security software and NX's use of swc/Rust/WASM EDIT: I have solved it in my case, it was security software on Windows blocking the nx-native-file-cache .node file from running. |
It might be helpful in certain circumstances; the issue for me was that, on Apple ARM CPU, I was running an Intel version of Node. Installing the correct version, removing the node_modules, and re-installing helped. |
I just stumbled into this issue. I updated my node version to |
For me it happened after a MacOS Update (from 14 to 15.1). I could somehow fix it by switching from IntelliJ runners to an actual command line... |
Fix for me was to reinstall node/npm using nvm. I had the x64 version but I am using an ARM Mac. I have no idea why it suddenly decided to break as I haven't changed anything about the setup... This guide helped me: https://medium.com/@k.auffinger/switching-to-arm-based-node-on-macos-964f89af4264 |
I stumbled upon the same error message on my Mac (M4) with MacOS |
leaving this as help here what we found: |
This also worked for me on macOS 15+ without downgrading 🚀 |
I was able to fix it by:
|
Solved it for me, thank you |
Hi, here's how I fixed it, in case you get the same issue on your end - Windows 11
|
it resolved my error on nx about the nx-demon, for the those guys that just installed the windows consider this and install it. |
Thanks, it helped us as well. |
Just to throw another potential solution in, I was getting this error because I was starting the application through a bash script, and |
This worked for me as well - MacOS - nx v20.4.5 - node v22 |
Current Behavior
Starting from this morning any nx commands display the following message on my monorepo, then get stuck for while and fails with the following error
I also try to run
npx create-nx-workspace
to test a fresh install and got the same result. Node dependencies are properly installed but the subsequent nx commands fails.The
Nx Daemon is unsupported in WebAssembly environments
message comes from the daemon client and it seems that IS_WASM here detects awasm32
arch for some reasonI guess this issue might be specific to my local setup and I am not sure what have changed since I last run an nx commands (maybe a few days ago).
Let me know if I can provide any additional information.
Thanks for the help
Expected Behavior
nx commands to run successfully
GitHub Repo
No response
Steps to Reproduce
npx create-nx-workspace
Nx Report
Running `npx nx report` yield the same issue
Failure Logs
No response
Package Manager Version
npm:10.2.4
Operating System
Additional Information
System Version: macOS 14.5 (23F79)
Kernel Version: Darwin 23.5.0
Node version 20.11.1
The text was updated successfully, but these errors were encountered: