Skip to content

[Bug]: D&D 5e version 5.1+ compatibility #28

@qw3ry

Description

@qw3ry

Contact Details

Github Issue Response

Foundry VTT version

13.348

Game system

dnd5e

Game system version

5.1.4

actor-export module version

2025.8.1

What browsers are you seeing the problem on?

Firefox

What Provider is affected?

Dungeons & Dragons 5th edition Character sheets

What happened?

In version 5.1.0, dnd5e had a breaking change:

CONFIG.DND5E.movementTypes

This config has been migrated from Record<string, string> to Record<string, MovementTypeConfig> with a deprecation path.

https://github.com/foundryvtt/dnd5e/releases/tag/release-5.1.0

The deprecation path would require calling toString() and does not work currently. Migration path is to use the label property. It should be enough to change the line label: this.game.dnd5e.config.movementTypes[m] to label: this.game.dnd5e.config.movementTypes[m].label plus some backwards compatibility fix.

Relevant log output

Uncaught (in promise) Error: TypeError: key.split is not a function
[Detected 3 packages: actor-export(2025.8.1), system:dnd5e(5.1.4), lib-wrapper(1.13.4.0)]
    downloadFiles main.js:530
    promise callback*downloadFiles main.js:523
    activateListeners main.js:373
    activateListeners main.js:371
    _render foundry.mjs:37377
    _render foundry.mjs:38113
    render foundry.mjs:37301
    onClick main.js:728
    callback application-v2-mixin.mjs:95
    #onClickItem foundry.mjs:26409
    activateListeners foundry.mjs:26365
    render foundry.mjs:26243
    _onActivate foundry.mjs:26394
    ContextMenu foundry.mjs:25992
    ContextMenu5e context-menu.mjs:5
    _attachFrameListeners application-v2-mixin.mjs:240
    #render foundry.mjs:27218
    #try foundry.mjs:7166
    add foundry.mjs:7139
    add foundry.mjs:7137
    render foundry.mjs:27174
    _onClickEntry foundry.mjs:104193
    #onClickEntry foundry.mjs:104167
    #onClickAction foundry.mjs:28169
    #onClick foundry.mjs:28122
    _attachFrameListeners foundry.mjs:28084
    #render foundry.mjs:27218
    #try foundry.mjs:7166
    add foundry.mjs:7139
    add foundry.mjs:7137
    render foundry.mjs:27174
    render foundry.mjs:101915
    #renderTabs foundry.mjs:113697
    _onFirstRender foundry.mjs:113637
    _doEvent foundry.mjs:27910
    #render foundry.mjs:27245
    #try foundry.mjs:7166
    add foundry.mjs:7139
    add foundry.mjs:7137
    render foundry.mjs:27174
    initializeUI foundry.mjs:169243
    setupGame foundry.mjs:169023
    #initializeGameView foundry.mjs:170481
    _initializeView foundry.mjs:170458
    initialize foundry.mjs:168932
    initialize#0 libWrapper-wrapper.js:188
    <anonymous> foundry.mjs:180998
    async* foundry.mjs:180981
[main.js:530:31](https://<redacted>/modules/actor-export/scripts/main.js)
    downloadFiles main.js:530
    (Async: promise callback)
    downloadFiles main.js:523
    activateListeners main.js:373
    (Async: EventListener.handleEvent)
    activateListeners main.js:371
    _render foundry.mjs:37377
    InterpretGeneratorResume self-hosted:1332
    AsyncFunctionNext self-hosted:800
    (Async: async)
    _render foundry.mjs:38113
    render foundry.mjs:37301
    onClick main.js:728
    callback application-v2-mixin.mjs:95
    #onClickItem foundry.mjs:26409
    (Async: EventListener.handleEvent)
    activateListeners foundry.mjs:26365
    render foundry.mjs:26243
    AsyncFunctionNext self-hosted:800
    (Async: async)
    _onActivate foundry.mjs:26394
    (Async: EventListener.handleEvent)
    ContextMenu foundry.mjs:25992
    ContextMenu5e context-menu.mjs:5
    _attachFrameListeners application-v2-mixin.mjs:240
    #render foundry.mjs:27218
    AsyncFunctionNext self-hosted:800
    (Async: async)
    #try foundry.mjs:7166
    add foundry.mjs:7139
    add foundry.mjs:7137
    render foundry.mjs:27174
    _onClickEntry foundry.mjs:104193
    #onClickEntry foundry.mjs:104167
    #onClickAction foundry.mjs:28169
    #onClick foundry.mjs:28122
    (Async: EventListener.handleEvent)
    _attachFrameListeners foundry.mjs:28084
    #render foundry.mjs:27218
    AsyncFunctionNext self-hosted:800
    (Async: async)
    #try foundry.mjs:7166
    add foundry.mjs:7139
    add foundry.mjs:7137
    render foundry.mjs:27174
    render foundry.mjs:101915
    #renderTabs foundry.mjs:113697
    _onFirstRender foundry.mjs:113637
    InterpretGeneratorResume self-hosted:1332
    AsyncFunctionNext self-hosted:800
    (Async: async)
    _doEvent foundry.mjs:27910
    #render foundry.mjs:27245
    AsyncFunctionNext self-hosted:800
    (Async: async)
    #try foundry.mjs:7166
    add foundry.mjs:7139
    add foundry.mjs:7137
    render foundry.mjs:27174
    initializeUI foundry.mjs:169243
    setupGame foundry.mjs:169023
    InterpretGeneratorResume self-hosted:1332
    AsyncFunctionNext self-hosted:800
    (Async: async)
    #initializeGameView foundry.mjs:170481
    _initializeView foundry.mjs:170458
    initialize foundry.mjs:168932
    InterpretGeneratorResume self-hosted:1332
    AsyncFunctionNext self-hosted:800
    (Async: async)
    initialize#0 libWrapper-wrapper.js:188
    <anonym> foundry.mjs:180998
    InterpretGeneratorResume self-hosted:1332
    AsyncFunctionNext self-hosted:800
    (Async: async)
    <anonym> foundry.mjs:180981

Sample Actor

Attachments

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageTriage the issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions