Bit status giving me invalid state, after the following.
I exported my tracked components. Then, I want to change my scope, so
component has invalid state, then,bit.json and bit init againbit addcomponent components/filters has an invalid state.
1) it has a model instance so it's not new.
2) it's not in staged state.
3) it doesn't have a version in the bitmap file.
Maybe the component was interrupted during the export and as a result the bitmap file wasn't updated with the new version
@Nuruddinjr , i guess you tried to reset your Bit workspace and start a fresh one.
The issue you get is due to the fact that the workspace is in a state which its objects and components are still stored, however, it is lacking additional data that was stored within the .bitmap and bit.json files.
you can read more about what bit stores and where here
bit keeps its object database in a hidden directory that you will need to clear as well.
there's a specific flag for the bit init command that handles such cases. please run bit init --reset-hard to reset your workspace.
@itaymendel I went to .git folder, deleted the .bit folder in it, and bit init again, it works for me.
alright, thanks for the update!
Most helpful comment
@Nuruddinjr , i guess you tried to reset your Bit workspace and start a fresh one.
The issue you get is due to the fact that the workspace is in a state which its objects and components are still stored, however, it is lacking additional data that was stored within the
.bitmapandbit.jsonfiles.you can read more about what bit stores and where here
bit keeps its object database in a hidden directory that you will need to clear as well.
there's a specific flag for the
bit initcommand that handles such cases. please runbit init --reset-hardto reset your workspace.