Skip to content

Installing dependencies fails on GitHub Actions and Vercel #332

Description

@alizahid

What happened?

My Expo app is part of a monorepo. There's a GitHub action that runs on every PR that installs dependencies and checks for lint errors and runs a test suite.

I'm installing uniwind-pro by adding "uniwind": "npm:uniwind-pro@beta", to my package.json and I've also added uniwind as a trusted dependencies in my root package.json.

I've followed the CI/CD guide but I'm still running into the libsecret issue.

GitHub action log

node:internal/modules/cjs/loader:1865
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^
Error: libsecret-1.so.0: cannot open shared object file: No such file or directory
    at Object..node (node:internal/modules/cjs/loader:1865:18)
    at Module.load (node:internal/modules/cjs/loader:1441:32)
    at Function._load (node:internal/modules/cjs/loader:1263:12)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/home/runner/work/chat-app/chat-app/node_modules/@zowe/secrets-for-zowe-sdk/src/keyring/index.js:60:5)
    at Module._compile (node:internal/modules/cjs/loader:1706:14)
    at Object..js (node:internal/modules/cjs/loader:1839:10) {
  code: 'ERR_DLOPEN_FAILED'
}

Vercel build log

node:internal/modules/cjs/loader:1865
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^
Error: libsecret-1.so.0: cannot open shared object file: No such file or directory
    at Object..node (node:internal/modules/cjs/loader:1865:18)
    at Module.load (node:internal/modules/cjs/loader:1441:32)
    at Function._load (node:internal/modules/cjs/loader:1263:12)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (/vercel/path0/node_modules/@zowe/secrets-for-zowe-sdk/src/keyring/index.js:60:5)
    at Module._compile (node:internal/modules/cjs/loader:1706:14)
    at Object..js (node:internal/modules/cjs/loader:1839:10) {
  code: 'ERR_DLOPEN_FAILED'
}

Both GitHub action and Vercel run on Linux. I also saw the note about EAS building Android on Linux, so will likely run into this issue there once I queue a build.

My Node version is 22, if that makes a difference.

PS: since the first time I setup uniwind-pro locally, bunx uniwind-pro fails with: Missing script: "postinstall"; is that expected? I tried logging out and back in but still the error shows up.

Steps to Reproduce

  1. Follow the CI/CD guide https://docs.uniwind.dev/pro/cicd-license
  2. Push a commit
  3. Watch my world crumble

Snack or Repository Link (Optional)

No response

Uniwind version

1.0.0-beta.8

React Native Version

0.81.5

Platforms

iOS, Android

Expo

Yes

Additional information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions