wix-incubator / corvid

Download your Wix site, code in a local IDE, collaborate, use git, and more!
MIT License
38 stars 10 forks source link

Random elements appear when loading the editor / Unable to push from local editor #189

Open TomsOverBaghdad opened 4 years ago

TomsOverBaghdad commented 4 years ago

Describe the bug I have a bug where it I do cmd+R (reload the local editor) some elements I thought were deleted reappear in the top left of the page and messes up the formatting of everything else on the page. I have tried to delete them and reformat several times and it has failed.

I have tried to just push out what I have and then try to fix this on a different branch, but I cannot push my changes. I get an error I'm guessing it has to do with this problem of not being able to delete these items.

To Reproduce Steps to reproduce the behavior: 1) git pull master 2) npx corvid open-editor 3) remove one of the items that keep reapearing, in my case buttonCreateFirstOutfit 4) click local save 5) close and reload the editor or cmd+r 6) element comes back

Expected behavior Elements that get removed shoudn't come back. I'm editing the home page and removing elements that we no longer want on there.

Screenshots

one of the obvious elements (the others are hidden underneath)

Screen Shot 2020-03-27 at 2 30 03 PM

trying to push

Screen Shot 2020-03-27 at 2 31 44 PM

dev tools -- note I get Global user preferences failed to load! on load of the editor, the other lines after that one are when I try to push

Screen Shot 2020-03-27 at 2 32 33 PM

Desktop (please complete the following information):

Additional context I have made the 'random elements' on the main editor and had to pull them and overwrite the local branch. Another developer had no problems with this though.

TomsOverBaghdad commented 4 years ago

Closer look at the error description

Screen Shot 2020-03-30 at 3 58 30 PM

ValidationFailurePayload { siteId=0f577108-804f-46a6-9a1c-e0974d864848, StyleReferenceMismatch=MutableList(StyleReferenceMismatch{styleId=style-k86j0zj9}, StyleReferenceMismatch{styleId=style-k1afmhre1}, StyleReferenceMismatch{styleId=style-k84wzxd5}, StyleReferenceMismatch{styleId=style-k84z0m9n}, StyleReferenceMismatch{styleId=style-k1afmhre1}, StyleReferenceMismatch{styleId=style-k1afmi4r1}, StyleReferenceMismatch{styleId=}, StyleReferenceMismatch{styleId=style-k86j0zj9}, StyleReferenceMismatch{styleId=style-k84z0m9n}, StyleReferenceMismatch{styleId=style-k84wzxd5}),PropertyReferenceMismatch=MutableList(ComponentPropertyMismatch{propertyReference=mobile_propItem-k3ritvc1}, ComponentPropertyMismatch{propertyReference=propItem-k84z05k3}, ComponentPropertyMismatch{propertyReference=propItem-k84z05k3}),MissingReference=MutableList(MissingReference(NodeId(dataItem-k84z05k1,document_data,None),comp-k84z05i3), MissingReference(NodeId(connection-k84z05k4,connections_data,None),comp-k84z05i3), MissingReference(NodeId(mobileHints-k84z061g,mobile_hints,None),comp-k84z05i3), MissingReference(NodeId(dataItem-k84z05k1,document_data,None),comp-k84z05i3), MissingReference(NodeId(connection-k84z05k4,connections_data,None),comp-k84z05i3), MissingReference(NodeId(mobileHints-k84z061g,mobile_hints,None),comp-k84z05i3)),UnknownComponentType=MutableList(UnknownComponentType(comp-k1uyedlu,wysiwyg.viewer.components.Group), UnknownComponentType(SOSP_CONTAINER_CUSTOM_ID,wysiwyg.viewer.components.SiteRegionContainer), UnknownComponentType(comp-k1uyedlu,wysiwyg.viewer.components.Group), UnknownComponentType(SOSP_CONTAINER_CUSTOM_ID,wysiwyg.viewer.components.SiteRegionContainer)) }"```