I've tried to use FSM with a simple schema definition, having only one collection ("people") and one index ("people_by_email"). I used init to initialise FSM, but when it fails when I try to generate migrations:
> env-cmd fauna-schema-migrate generate
generate: Generate migration from your resources Executed...
🧬 Planning Migrations
TypeError: Cannot read properties of undefined (reading 'object')
I've tried to use FSM with a simple schema definition, having only one collection ("people") and one index ("people_by_email"). I used
init
to initialise FSM, but when it fails when I try to generate migrations:These are the installed packages:
@fauna-labs/fauna-schema-migrate 2.2.1 env-cmd 10.1.0 faunadb 4.6.0
These are the schema files:
I have created a
.env
file withFAUNA_ADMIN_KEY
andFAUNADB_DOMAIN
variables.