Skip to content

[BUG] Incompatible with Automated Animations #275

@strongpauly

Description

@strongpauly

Module Version: v0.69

Describe the bug
When both modules are enabled, Tokenmagic logs an error in the console and does not load.

To Reproduce
Steps to reproduce the behavior:

  1. Enable both Token Magic FX and Automated Animations
  2. Refresh page

Expected behavior
Token Magic FX should load properly

Console error

FilterDistortion.js:5 Uncaught TypeError: undefined. Class extends value undefined is not a constructor or null
[Detected 1 package: tokenmagic]
    at FilterDistortion.js:5:52
(anonymous)	@	FilterDistortion.js:5

Browser:

  • Electron

Foundry Version:
12.331

Game System:
D&D 5e 4.0.4

Additional context
Error is thrown on line FilterDistortion extends PIXI.filters.DisplacementFilter. When the module loads by itself a deprecation warning is thrown stating PIXI.filters.DisplacementFilter has been moved to PIXI.DisplacementFilter. Perhaps this is the fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions