Skip to content

package.json is copied from reflex.lock/ to .web/ without processing #6765

Closed

Description

@masenf

Describe the bug
If the user removes the scripts or other sections that reflex puts into package.json during reflex init, a subsequent hot reload can result in the dev server not being able to start.

To Reproduce

  1. reflex run
  2. truncate -s 0 reflex.lock/package.json then touch a python file -> trigger hot reload
  3. get the lockfile out of sync warning
  4. exit reflex, delete reflex.lock
  5. reflex run -> dev server cannot start since package.json is missing the scripts section

Expected behavior
Reflex shouldn't blindly copy package.json without ensuring the necessary dev scripts are in place.

Activity

  1. self-assigned this
    on Jul 15, 2026
  2. linear-code commented on Jul 15, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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