Skip to content
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

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

Closed
ssdeepak opened this issue Jun 18, 2024 · 9 comments · Fixed by #28596
Closed

Comments

@ssdeepak
Copy link

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
Copy link
Member

JeanMeche commented Jun 18, 2024

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.

@JeanMeche JeanMeche added the area: build & ci Related the build and CI infrastructure of the project label Jun 18, 2024
@ngbot ngbot bot modified the milestone: needsTriage Jun 18, 2024
@JoostK
Copy link
Member

JoostK commented Jun 19, 2024

@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
Copy link
Member

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.

@JeanMeche JeanMeche transferred this issue from angular/angular Jun 19, 2024
@alan-agius4 alan-agius4 added area: @angular/build type: bug/fix freq1: low Only reported by a handful of users who observe it rarely severity3: broken state: blocked on upstream and removed area: build & ci Related the build and CI infrastructure of the project labels Jun 19, 2024
@alan-agius4
Copy link
Collaborator

alan-agius4 commented Jun 19, 2024

I have reported an issue to the upstream repository: kriszyp/lmdb-js#295

@sykum
Copy link

sykum commented Jul 16, 2024

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

@alan-agius4
Copy link
Collaborator

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

@sykum
Copy link

sykum commented Jul 17, 2024

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

@atsjo
Copy link

atsjo commented Oct 5, 2024

Why not add lmdb as an optional dependency instead since it actually is from 18.1 @alan-agius4 ? My project now fails pnpm install on windows arm64, and I worked around this by adding:

  "pnpm": {
    "overrides": {
      "@angular/build>lmdb": "-"
    }
  },
  "optionalDependencies": {
    "lmdb": "3.1.3"
  }

If lmdb was added via optionalDependencies in @angular/build then pnpm install would work without workarounds, and just drop install and show your runtime warning on unsupported platforms...

alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 8, 2024
A warning mechanism has been implemented to notify users when lmdb is unavailable. On Windows ARM64 systems, however, installing this package appears to cause installation failures.

See: angular#27882 (comment)
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 8, 2024
A warning mechanism has been implemented to notify users when lmdb is unavailable. On Windows ARM64 systems, however, installing this package with pnpm appears to cause installation failures.

See: angular#27882 (comment)

Closes angular#27882
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 9, 2024
A warning mechanism has been implemented to notify users when lmdb is unavailable. On Windows ARM64 systems, however, installing this package with pnpm appears to cause installation failures.

See: angular#27882 (comment)

Closes angular#27882
alan-agius4 added a commit that referenced this issue Oct 9, 2024
A warning mechanism has been implemented to notify users when lmdb is unavailable. On Windows ARM64 systems, however, installing this package with pnpm appears to cause installation failures.

See: #27882 (comment)

Closes #27882
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants