Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

package.json gets wiped and committed sometimes (inconsistent) #332

Open
melanieseltzer opened this issue Nov 14, 2018 · 0 comments
Open
Labels
bug Something isn't working

Comments

@melanieseltzer
Copy link
Collaborator

melanieseltzer commented Nov 14, 2018

Describe the bug

Haven't looked into this properly yet but I am encountering a weird bug that is happening on and off, but nothing consistent. If I have 0 projects in the app and then create one (been always CRA but might happen with other types), the package.json of that project will get wiped (empty file) and committed (when we add the 'Add Guppy data to package.json' commit).

So then when I try to eject, git state is unclean and when I go to diff it, it shows the package.json full contents trying to be added. So somehow it's getting wiped in the split second before the commit goes through, and added again right after, alerting that's there's an uncommitted change in git.

To Reproduce

Pretty inconsistent. I've come across it maybe 20 - 30% of the time of creating new projects to test the reinstall/eject features. The only thing I noticed was it seemed to happen if the project was the only project in the app. But not sure if this is a direct correlation.

Expected behavior

Screenshots

Environment (please complete the following information):

  • OS: MacOS Mojave
  • Version: Development (not checked prod)
  • Node version: v10.8.0

Additional context

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant