Skip to content

fix: regenerate corrupted package-lock.json - #34

Merged
merlik787-droi merged 1 commit into
mainfrom
fix/regenerate-corrupt-lockfile
Oct 9, 2026
Merged

merlik787-droi merged 1 commit into
mainfrom
fix/regenerate-corrupt-lockfile

Conversation

@merlik787-droi

Copy link
Copy Markdown
Contributor

Closes #33

Problem

main cannot be installed from a clean checkout. package-lock.json is corrupted: the entry for @vitejs/plugin-react contains @testing-library/jest-dom's dependency list, so npm ci fails (lock out of sync) and, even after npm install, @rolldown/pluginutils is never installed — which makes vitest abort at startup.

Because CI runs npm ci, the whole frontend CI was red on main.

Fix

Regenerated the lockfile from scratch with npm:

rm package-lock.json && npm install

The new lock (lockfileVersion 3) restores the correct @vitejs/plugin-react deps (@babel/core, @rolldown/pluginutils, ...) and reinstates the missing @rolldown/pluginutils package.

Verification

rm -rf node_modules && npm ci      → success (0 vulnerabilities)
npx vitest run                     → 19 files, 84 tests passed
node_modules/@rolldown/pluginutils → present

No source or package.json changes — dependency metadata only.

The lockfile entry for @vitejs/plugin-react contained @testing-library/
jest-dom's dependency list (adobe/css-tools, aria-query, css.escape,
dom-accessibility-api, redent) instead of its own (@babel/core,
@rolldown/pluginutils, ...). As a result @rolldown/pluginutils was never
installed, vitest could not load its config, and `npm ci` on CI failed
because package.json and the lock were out of sync.

Regenerated from scratch with npm (lockfileVersion 3). npm ci now
succeeds, vitest loads, and all 84 tests pass. npm audit reports 0
vulnerabilities.
@merlik787-droi
merlik787-droi merged commit 44f69f9 into main Oct 9, 2026
1 check passed
@merlik787-droi
merlik787-droi deleted the fix/regenerate-corrupt-lockfile branch October 9, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI is red on main: corrupted package-lock.json breaks npm ci and vitest

2 participants