Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

[Bug]: shopify --theme-serve "Keep the remote version" deletes files on new development theme #2433

@ceri-waterscreative

Description

@ceri-waterscreative

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

What type of project are you working on?

theme

Expected behavior

When doing "shopify theme serve" anew (No development theme uploaded yet) it says that all .json files are out of sync. "is different from the remote version in the development theme", choosing "Keep the remote version" actually results in all of your .json files being deleted!

It shouldn't say any files are out of sync because they don't yet exist on the development theme..

Actual behavior

All of my .json files were deleted

Stack trace

No response

Reproduction steps

  1. Login to a Shopify Store. (shopify login --store store-a.myshopify.com)
  2. Login to a different Shopify Store ((shopify login --store store-b.myshopify.com))
  3. Run "shopify theme serve --theme-editor-sync"
  4. Wait for message "xx is different from the remote version in the development theme"
  5. Choose number 1 (Keep the remote version)
  6. Watch as all of your .json files get deleted!

Operating System

Windows 11

CLI version (run shopify version if you're not sure)

2.19.0

Shell

Git Bash

Ruby version (run ruby -v if you're not sure)

2.7.3p183

What language and version are you using in your application?

N/A

Metadata

Metadata

Assignees

Labels

Type

No type
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