You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Installation of the module and initial usage were fine. Until I restarted my Foundry to set some user rights. After that the module crashes with this error in the console:
Additional Information
The API 12 documentation does not mention the field .data anymore. But it seems to have the version - which the migration code tries to get - in a top level field now: https://foundryvtt.com/api/classes/foundry.packages.BaseModule.html#defineSchema
So maybe it would suffice to change migration.ts line 27:
if (isNewerVersion(getGame().modules.get(MODULE_ID)?.data.version ?? '0', NEEDS_MIGRATION_VERSION)) return;
to
if (isNewerVersion(getGame().modules.get(MODULE_ID)?.version ?? '0', NEEDS_MIGRATION_VERSION)) return;
The text was updated successfully, but these errors were encountered:
Environment Details
Self Hosted
Describe the bug
Installation of the module and initial usage were fine. Until I restarted my Foundry to set some user rights. After that the module crashes with this error in the console:
To Reproduce
Expected behavior
That the module launches
Additional Information
The API 12 documentation does not mention the field .data anymore. But it seems to have the version - which the migration code tries to get - in a top level field now: https://foundryvtt.com/api/classes/foundry.packages.BaseModule.html#defineSchema
So maybe it would suffice to change
migration.ts line 27
:to
The text was updated successfully, but these errors were encountered: