Declarative Data Definitions ❌ Error: Too many definition changes

Hi there,

We’ve been playing around with custom data definitions and love this new aspect of Shopify app development. It makes life much much easier when defining complex data structures for clients, and having them version-controllable.

I have the Dev dashboard configured with my Dev dashboard Plus store, and can happily push 25 field changes up to Shopify with app dev and app deploy.

I take the following steps:

  • Execute shopify app dev
  • Add the 25 fields to the toml file
  • Exit shopify app dev
  • Execute shopify app dev clean for good measure
  • Execute shopify app deploy
  • Then start shopify app dev again
  • If I add any more fields, I get an error:
app-preview │ ❌ Error
app-preview │ └  Too many definition changes. Max allowed is 25, but got 26.

This is despite the documentation here mentioning the following

To ensure Shopify can quickly and reliably distribute definitions across shops, you can’t make more than 25 metafield and metaobject changes (creation, update or deletion) in a single deploy. If you need to make more than 25 changes, you will need to do so over multiple deploys

Is this a bug due to the early-access nature of this feature, or am I doing something wrong? I have approximately 140 definitions to create.