angular / angular-cli

CLI tool for Angular
https://cli.angular.io
MIT License
26.74k stars 11.98k forks source link

Snapdragon X Elite Arm / Windows , No native build was found for platform=win32 arch=arm64 #27882

Open ssdeepak opened 3 months ago

ssdeepak commented 3 months ago

Which @angular/* package(s) are the source of the bug?

compiler, core, Don't known / other

Is this a regression?

Yes

Description

I tried Angular 18 on my new Snapdragon X Elite

When I try to run the project from VSCode I get this error. No native build was found for platform=win32 arch=arm64 runtime=node abi=127 uv=1 armv=8 libc=glibc node=22.3.0 attempted loading from: D:\Junk\my-app\node_modules\lmdb and package: @lmdb/lmdb-win32-arm64

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

ng serve --o
Application bundle generation failed. [0.406 seconds]

X [ERROR] No native build was found for platform=win32 arch=arm64 runtime=node abi=127 uv=1 armv=8 libc=glibc node=22.3.0
    attempted loading from: D:\Junk\my-app\node_modules\lmdb and package: @lmdb/lmdb-win32-arm64
 [plugin angular-compiler]

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 18.0.4
Node: 22.3.0
Package Manager: npm 10.8.1
OS: win32 arm64

Angular: 18.0.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1800.4
@angular-devkit/build-angular   18.0.4
@angular-devkit/core            18.0.4
@angular-devkit/schematics      18.0.4
@angular/cli                    18.0.4
@schematics/angular             18.0.4
rxjs                            7.8.1
typescript                      5.4.5
zone.js                         0.14.7

Anything else?

React JS works Fine on the same platform

JeanMeche commented 3 months ago

The workspace still builds with node 18.

https://github.com/angular/angular/blob/0bd55a684f7adf83ceb7d6c0b1d510252209388c/WORKSPACE#L50-L63

Afaik arm64 on windows is only support from Node19 onwards.

JoostK commented 3 months ago

@ssdeepak for clarity, is this about building an Angular app, or building this repo? I think it's the former as you're referring to ng serve, but wanting to make sure.

JeanMeche commented 3 months ago

oh you're right @JoostK, this is no the repo build but an app build.

lmdb is a native dependency, that looks like isn't supported yet on win-arm64 platforms. Sending over to the CLI repo.

alan-agius4 commented 3 months ago

I have reported an issue to the upstream repository: https://github.com/kriszyp/lmdb-js/issues/295

sykum commented 2 months ago

same here it's annoing to stuck on angular 17 😢

alan-agius4 commented 2 months ago

This should no longer error when using Angular CLI version 18.1.

sykum commented 2 months ago

Thank you very much for the info and I look forward to testing it and will give feedback.