Open lastobelus opened 4 years ago
You're most likely running into an issue with incompatible schema in Shopify. Have you confirmed that your settings_data.json
is valid by copy/pasting it into your theme files with the Admin GUI editor? I've run into cases where after making Section changes in the admin and then trying to upload the data file it will upload it but not save due to incompatible schema based on the section settings. Slate does not warn you about this, although ThemeKit I believe does in the same scenario.
yes, I have confirmed that the settings_data.json is valid (and as I mentioned, I am able to upload it directly with themekit from the build directory)
Could it be possible you forgot to modify your .env file? there is a default SLATE_IGNORE_FILES=config/settings_data.json
Unfortunately slate looks like its uploading ignore files although it will not.
Problem
Since editing a section in the theme I am developing, Slate no longer uploads
config/settings_data.json
to my dev theme, either when runningyarn start
, or when editing it whenyarn watch
is active. (It's possible it never worked, even before using the theme section editor, but I'm not sure)Replication steps
config/settings_data.json
yarn start
config/settings_data.json
, but it is unchanged in the theme editor.More Information
cli.promptSettings
set to both true and falsetheme deploy config/settings_data.json -d dist
, which works as expected.