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

No support for @bitwarden/sdk-napi on linux/arm64 #1154

Open
1 task done
willem-h opened this issue Oct 27, 2024 · 0 comments
Open
1 task done

No support for @bitwarden/sdk-napi on linux/arm64 #1154

willem-h opened this issue Oct 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@willem-h
Copy link

Steps To Reproduce

  1. Install @bitwarden/sdk-napi on linux/arm64
  2. Run JavaScript code that imports the client

A minimal repo for replication is here https://github.com/willem-h/bws-sdk-arm-issue

Expected Result

Using the Bitwarden SDK would work on linux/arm64 as it does on darwin/x64 without errors.

Actual Result

I received the following error:

node:internal/modules/cjs/loader:1249
  const err = new Error(message);
              ^

Error: Cannot find module '@bitwarden/sdk-napi-linux-arm64-gnu'
Require stack:
- /app/node_modules/@bitwarden/sdk-napi/binding.js
- /app/node_modules/@bitwarden/sdk-napi/dist/bitwarden_client/index.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
    at Function._load (node:internal/modules/cjs/loader:1075:27)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
    at require (node:internal/modules/helpers:141:16)
    at Object.<anonymous> (/app/node_modules/@bitwarden/sdk-napi/binding.js:203:31)
    at Module._compile (node:internal/modules/cjs/loader:1546:14)
    at Object..js (node:internal/modules/cjs/loader:1689:10)
    at Module.load (node:internal/modules/cjs/loader:1318:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/app/node_modules/@bitwarden/sdk-napi/binding.js',
    '/app/node_modules/@bitwarden/sdk-napi/dist/bitwarden_client/index.js'
  ]
}

Node.js v22.10.0

Screenshots or Videos

No response

Additional Context

I'm developing on an Intel Mac and the SDK works perfectly there. It's only when I run the code on my Raspberry Pi 5 running Debian Bookworm that I get the issue.

Operating System

Linux

Operating System Version

Debian GNU/Linux 12 (bookworm)

Build Version

1.0.0

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@willem-h willem-h added the bug Something isn't working label Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant