Skip to content

Cannot use 'in' operator to search for 'integrity' in undefined #276

Closed

Description

@iqfareez

Note

This issue is fixed in pnpm version 11.13


Problem

I encountered an error when trying to install pnpm 11.12 using action-setup.

action-setup version: uses: pnpm/[email protected]

Github Action log:

Run pnpm/[email protected]
  
Running self-installer...
  added 1 package, and audited 2 packages in 2s
  1 package is looking for funding
    run `npm fund` for details
  1 high severity vulnerability
  To address all issues, run:
    npm audit fix --force
  Run `npm audit` for details.
  Checking for updates...
  Switching pnpm from v11.7.0 to v11.12.0...
  Error:  Cannot use 'in' operator to search for 'integrity' in undefined
  pnpm: Cannot use 'in' operator to search for 'integrity' in undefined
      at createFullPkgId (file:///home/runner/setup-pnpm/node_modules/pnpm/dist/pnpm.mjs:154891:19)
      at lockfileToDepGraph (file:///home/runner/setup-pnpm/node_modules/pnpm/dist/pnpm.mjs:154840:20)
      at hashDependencyPaths (file:///home/runner/setup-pnpm/node_modules/pnpm/dist/pnpm.mjs:179640:17)
      at iteratePkgsForVirtualStore (file:///home/runner/setup-pnpm/node_modules/pnpm/dist/pnpm.mjs:179594:44)
      at iteratePkgsForVirtualStore.next (<anonymous>)
      at buildGraphFromPackages (file:///home/runner/setup-pnpm/node_modules/pnpm/dist/pnpm.mjs:179699:43)
      at lockfileToDepGraph2 (file:///home/runner/setup-pnpm/node_modules/pnpm/dist/pnpm.mjs:179656:73)
      at headlessInstall (file:///home/runner/setup-pnpm/node_modules/pnpm/dist/pnpm.mjs:185801:288)
      at async installFromLockfile (file:///home/runner/setup-pnpm/node_modules/pnpm/dist/pnpm.mjs:238383:3)
      at async installPnpmToGlobalDir (file:///home/runner/setup-pnpm/node_modules/pnpm/dist/pnpm.mjs:238350:7)
Error: Something went wrong, self-installer exits with code 1

I specified the packageManager in package.json:

{
  "name": "peta-solat",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "tsc && vite build",
    "preview": "vite preview"
  },
  "devDependencies": {
    "typescript": "~6.0.2",
    "vite": "^8.1.1"
  },
  "dependencies": {
    "@tailwindcss/vite": "^4.3.2",
    "maplibre-gl": "^5.24.0",
    "tailwindcss": "^4.3.2"
  },
  "packageManager": "[email protected]+sha512.820a6fbd0d9f04c226638002aead1e45340a9139dd5dc077c1d83ef44aa2481c8eb6637b4c9aa696a3c7e35ba818e49cf27213e5f2b91138d09b7a3e26e898ba"
}

Action workflow file:

name: Deploy site to Pages

on:
  push:
    branches: ["main"]
  workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
  contents: read
  pages: write
  id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
  group: "pages"
  cancel-in-progress: false

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/[email protected]

      - name: Setup pnpm
        uses: pnpm/[email protected]

      - name: Setup Node
        uses: actions/[email protected]
        with:
          node-version: "24"

      - name: Setup Pages
        id: pages
        uses: actions/[email protected]

      - name: Install dependencies
        run: pnpm install --frozen-lockfile

      - name: Build app
        run: |
          pnpm run build --base "${{ steps.pages.outputs.base_path }}"

      - name: Upload artifact
        uses: actions/[email protected]
        with:
          path: dist

  deploy:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    needs: build
    runs-on: ubuntu-slim
    name: Deploy
    steps:
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/[email protected]

Workaround

Pin to pnpm 11.11. Eg corepack use [email protected]

Activity

  1. ntnyq commented on Jul 12, 2026

    @ntnyq

    Workaround: pin pnpm at v11.11.0

  2. rubixvi commented on Jul 12, 2026

    @rubixvi

    Workaround: pin pnpm at v11.11.0

    probably want to drop it back to 11.10.0, 11.11.0 is bugged for electron apps.

  3. 63 remaining items

  4. iqfareez commented on Jul 15, 2026

    @iqfareez
    Author

    Can confirm pnpm 11.13 no longer have the issue. Guess I'll close it.

  5. added a commit that references this issue on Jul 19, 2026
  6. added a commit that references this issue on Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions