The autogenerate command fails with a TypeError: Cannot read properties of undefined (reading 'filter') error if the source (primary) environment has no models or blocks.
The command completed successfully as soon as I created a model in the primary environment.
Example command:
# `next` is the name of the sandbox environment
datocms migrations:new 'add company' --ts --autogenerate='next'
The autogenerate command fails with a
TypeError: Cannot read properties of undefined (reading 'filter')
error if the source (primary) environment has no models or blocks.The command completed successfully as soon as I created a model in the primary environment.
Example command: