Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Uncaught TypeError: Math.clamped is not a function" in console #129

Open
richardgaywood opened this issue Aug 10, 2024 · 1 comment
Open

Comments

@richardgaywood
Copy link

One of my players has reported seeing this in their console during a game. I cannot repro the issue, but I can see Math.clamped in the code. Foundry v12 code claims it's been deprecated, although one wouldn't think that would result errors... in foundry-esm.js I can see:

  /**
   * @deprecated since v12
   * @ignore
   */
  function clamped(num, min, max) {
    const msg = "Math.clamped is deprecated in favor of Math.clamp.";
    foundry.utils.logCompatibilityWarning(msg, {since: 12, until: 14, once: true});
    return clamp(num, min, max);
  }

Full stack trace of the Popout! error my player saw:

Uncaught TypeError: Math.clamped is not a function
    at TooltipManager._setStyle (game:452:47)
    at TooltipManager._setAnchor (game:435:17)
    at TooltipManager.activate (game:215:10)
    at #onDeactivate (game:139:24)
@exuvo
Copy link

exuvo commented Aug 17, 2024

I see it in popped out encounter tracker on pathfinder 2e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants