Skip to content

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

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

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