Skip to content

The persisted lockfile is out of sync with the recovered package.json #6657

@masenf

Description

@masenf

Describe the bug
Error during reflex run:

Debug: Running command: ['/Users/masenf/Library/Application 
Support/reflex/bun/bin/bun', 'install', '--legacy-peer-deps', 
'--frozen-lockfile']
Debug: Installing base frontend packages
Debug: bun install v1.3.0 (b0a6feca)
Debug: error: lockfile had changes, but lockfile is frozen
Debug: note: try re-running without --frozen-lockfile and commit the updated 
lockfile
The persisted lockfile is out of sync with the recovered package.json. Delete 
the 
/Users/masenf/code/reflex-dev/repro-reflex-lock/9e3d6c4f-cdb5-477b-9e07-44ed7912
f3c9_refs_heads_main_77af9d4a00069e5c1d16aeeb4afd2a5cc9299e2d/reflex.lock 
directory and rerun so Reflex regenerates it from scratch.

The lock file got updated with new dependencies, but the locked package.json did NOT get updated and now the project cannot start.

To Reproduce

reflex init --template blank
reflex export --frontend-only --no-zip
(cd reflex.lock && bun add recharts@3.8.1)
reflex run --loglevel debug

This is a minimal reproducer for at least part of the issue. However, in the initial report, the reflex.lock/package.json did NOT match the reflex.lock/bun.lock (which contained "recharts": "3.8.1")

Expected behavior
package.json and bun.lock stay in sync, so the app can start properly.

Specifics (please complete the following information):

  • Python Version: 3.14
  • Reflex Version: 0.9.5.post2
  • OS: linux

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
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