-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
This platform (win32-x64) is currently not supported by Nx. after 16.4.0 update #17767
Comments
I'm having the same issue but on GitHub CI with Exact error message: |
also same issue digitalocean app platform. This platform (linux-x64) is currently not supported by Nx. |
Oh no! That's not right, linux and Windows are definitely supported. This usually happens because the node_modules directory was installed with the You can read more about it here: If things still don't work after following the document, let me know. |
I read about this thorough :) We make sure that in our CI Pipeline we do always create the node_modules from scratch and Also I re-assured multiple times that we nowhere use the no-optional flag. Also as I mentioned the same setup works perfectly fine with NX 16.3.2 and stopped working all of a sudden after udpating to 16.4. |
We're not using the |
Exactly same behaviour here :) |
Do you all have a reproduction somewhere I can take a look at? Particularly the package.json and CI commands that are used? |
Also, if you take a look inside the node_modules/@nx directory, do you see any packages that are along the lines of |
|
Oh now that's suspicious. The native binary package is there. We use a Windows agent when we do publishing, so it definitely works on Windows. I'll see what I can find on a local Windows machine then. |
Also I just started a run on all our available agents => It seems that not every run is affected...just like 80% or sth...But I am not able to identify why this is the case as ALL machines are the same image |
Just for my curiousity @SteveW94, are you running Windows 10 on Azure with On-Premise hosting? |
It's definatly Windows 10. |
What's the install command being used @SteveW94 ? |
This would be: "yarn install --force --pure-lockfile" |
Doesnt seem like I can reproduce the Windows issue. Both locally and on Azure are working for me. and the repo if you want to change some things to break it: |
@SteveW94 what version of yarn is being used? |
v1.22.19 Same as yours 🙈 |
@SteveW94 can you confirm that all your Windows 10 agents are running with the latest Windows updates? Specifically can you check to see if the msvc redistribution is correct for all of them? https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 This it the only thing I can think of now, especially because you say that it works on some of your agents. |
Same. |
@creadicted What is the command you used to install your npm dependencies? And can you check if |
I will try to verify that and ask the person responsible for the agents image. Also what grinds my gears: We did not change anything and with 16.3.2 everything works fine on all agents and 100% of the run, and it starts breaking with 16.4. So at least sth seems to have changed there regarding this? |
I also got this problem upgrading to latest nx. When I run If i instead run |
@FrozenPandaz I use the default script mentioned here
this seems to work
Which odly leads to a library linting fail which can not be reproduced. Not shure if related. |
@creadicted & @martinkamara you folks seem to be hitting the npm bug linked here: npm/cli#4828 @SteveW94 We're trying to improve the performance of Nx, and we're compiling rust to be used in Node. With the latest changes, we removed a fallback to Node because we have plans to write more performance oriented code in rust. In 16.3, we did the same check as we're doing now, but you didnt see the errors before because you were using the Node version. Now to check what version of msvc is installed, the only thing I saw was to use "Add & Remove programs" and check the version there. I'm not sure of a way to check it in cmd. I'll edit this if I find something. |
Thanks for the detailed Information @Cammisuli |
@jennifertrin do you have a link to your ci, or able to reproduce it somewhere where I can take a look? Any info is good. |
To make it work on GitHub Actions I needed to add code below to "optionalDependencies": {
"@nx/nx-darwin-arm64": "16.5.1",
"@nx/nx-darwin-x64": "16.5.1",
"@nx/nx-linux-x64-gnu": "16.5.1",
"@nx/nx-win32-x64-msvc": "16.5.1"
} |
This really helped! Thanks |
I had same issue, resolved upgrading to 16.5.3 |
We upgraded to 16.5.5 and still face the issue when trying to serve our app locally against the official Microsoft Playwright Docker image. The error remains when we explicitly add the linux dependencies. |
@Exoow did you force install all the packages? Can you confirm that node_modules has all the proper deps in the |
@Cammisuli ah, using --force revealed the error that the linux package is not compatible with my Windows. So I need to install the dependency inside the container, then it works. |
I think most of the issues here were solved, nx.dev/recipes/ci/troubleshoot-nx-install-issues will contain information on how to troubleshoot. Also, if there are folks who are building on a host machine and using a docker container; make sure that the docker container does its own npm install, or If the above solutions do not work for you, please open a new issue. |
@rmachado-studocu Can you share how do u have the yarnrc.yml configured please? Mine looks like this, not sure if It's right
|
nvm, I fixed it with:
And removing the supportedArchitectures from the yarnrc.yml. I was having issues with a FirebaseExtended/action-hosting-deploy@v0 it end up been a yarn build been called by a predeploy script The |
The Issue still exists for WebContainers (on MacOS ARM as Host). The report was created on my Stackblitz WebContainer.
Installed by with optional dependencies:
but still unable to serve the app.
|
same here, version |
Had the same issue. I have like 4 repos with Nx (one at work) and one of them had problem after update to 16.8.1 What helped was:
|
I am experiencing the same issue running some code using Lerna with version > 7.1.5 and running npm ci on an Azure Pipeline (linux, cloud hosted). |
We're experiencing this too. We, however, run on multiple platforms. |
I had similar issue in ubuntu 22.x with docker based project.I updated my nx version from |
My exact problem. Any fixes so far? Got a broken pipeline here. |
I've upgraded nx from version |
I cannot even get that far nx report
Error: Cannot load native addon because loading addons is disabled: /home/projects/rsug1b-qjfxiq/node_modules/nx/node_modules/@nx/nx-linux-x64-musl/nx.linux-x64-musl.node
at process.dlopen (https://rsug1bqjfxiq-k5ff.w-credentialless.staticblitz.com/blitz.95086023.js:352:57629)
at Module._extensions..node (https://rsug1bqjfxiq-k5ff.w-credentialless.staticblitz.com/blitz.95086023.js:55:15934)
at Module.load (https://rsug1bqjfxiq-k5ff.w-credentialless.staticblitz.com/blitz.95086023.js:55:13457)
at Module._load (https://rsug1bqjfxiq-k5ff.w-credentialless.staticblitz.com/blitz.95086023.js:55:10535)
at Module.require (https://rsug1bqjfxiq-k5ff.w-credentialless.staticblitz.com/blitz.95086023.js:55:13775)
at i (https://rsug1bqjfxiq-k5ff.w-credentialless.staticblitz.com/blitz.95086023.js:98:2198)
at _0x521062 (https://rsug1bqjfxiq-k5ff.w-credentialless.staticblitz.com/blitz.95086023.js:352:206666)
at Object.eval (file:///home/projects/rsug1b-qjfxiq/node_modules/nx/src/native/index.js:171:31)
at Object.function (https://rsug1bqjfxiq-k5ff.w-credentialless.staticblitz.com/blitz.95086023.js:352:207446)
at Module._compile (https://rsug1bqjfxiq-k5ff.w-credentialless.staticblitz.com/blitz.95086023.js:55:14871) {
code: 'ERR_DLOPEN_DISABLED'
} This is another attempt to run latest |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
After updating from 16.3.x to 16.4 today, our CI-Pipeline nx-Tasks stopped working with the following message:
" This platform (win32-x64) is currently not supported by Nx."
Expected Behavior
No error messages when using nx-Tasks on Windows 10 CI agent
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: